Thanks for the report. I'm glad you got it working.
I should have posted the entire line:
(L:PauseOnDistanceLeft,miles) 0 < if{
I didn't realize the semicolon might be confusing. I was in a rush to get out the door for an appointment. Never do tech support while double parked.
There are two other things I've fixed on the Stratocruiser. One is in a thread titled "The 54 minute hour" and the other has to do with low volume external engine sounds where an edit to the bounding box with RADitor fixes a few problems. I'd have to do a search for that one.
I opened the code.xml file in notepad++ which will display long lines properly broken instead of all on one line, but does not change the text to do this. I found and copied the pertinent part of the code to a new file, then added line breaks and indentation until it was readable. This portion of the code looks like this:
Code:
(L:PauseOnDistance,bool) 1 ==
if{
(L:PauseOnDistanceLeft,miles) (L:PauseOnDistanceLeftPAST,miles) !=
if{
(L:PauseOnDistanceLeft,miles) (>L:PauseOnDistanceGoal,miles)
(A:PLANE LATITUDE,Radians) (>L:PlaneStartLatitude,Radians)
(A:PLANE LONGITUDE,Radians) (>L:PlaneStartLongitude,Radians)
}
6371 (>L:R,number)
(L:PlaneStartLatitude,Radians) (L:PlaneStartLatitude,Radians) - (>L:dLat,Radians)
(L:PlaneStartLongitude,Radians) (L:PlaneStartLongitude,Radians) - (>L:dLon,Radians)
(L:dLat,Radians) 2 / sin 2 pow (>L:LONLAT_A1,number)
(L:PlaneStartLatitude,Radians) cos (A:PLANE LATITUDE,Radians) cos * (L:dLon,Radians) 2 / sin 2 pow * (>L:LONLAT_A2,number)
(L:LONLAT_A1,number) (L:LONLAT_A2,number) + (>L:LONLAT_A,number)
2 (L:LONLAT_A,number) sqrt 1 (L:LONLAT_A,number) - sqrt atg2 * (>L:LONLAT_C,number)
(L:PauseOnDistanceLeft,miles) 0 >
if{
(L:PauseOnDistanceGoal,miles) (L:R,number) (L:LONLAT_C,number) * 1.609344 / - (>L:PauseOnDistanceLeft,miles)
(L:PauseOnDistanceLeft,miles) 0 ==
if{
0 (>L:PauseOnDistance,bool)
1 (>L:Paused,bool)
(>K:PAUSE_ON)
}
}
}
els{
0 (>L:PauseOnDistanceLeft,miles)
}
(L:PauseOnDistanceLeft,miles) (>L:PauseOnDistanceLeftPAST,miles)
I converted it to C syntax for readability and that's when I noticed the problem with dLon and dLat. The above version is the original before any fixes.
Hook