- Messages
- 542
- Country
I have a Radar that has multiple functions and multiple modes.
The display modes are as follows:
(L:GrndMap_Variant,enum) 0 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 1 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 2 = Scrollable Fligt Plan list text .
(L:GrndMap_Variant,enum) 3 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 4 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 5 = Stand Off - Map at Next Waypoint(s) .
Item 1.
Enums 0 , 1 , 3 and 4 are all the same Map presentation each having different elevation tint colours.
The map position basis is the aircraft's current position as is determined by ;
<CustomDrawParam id="Latitude" Name="Latitude">
<Value>(ALANE LATITUDE,Radians)</Value>
</CustomDrawParam>
<CustomDrawParam id="Longitude" Name="Longitude">
<Value>(ALANE LONGITUDE,Radians)</Value>
</CustomDrawParam>
Item 2.
Enum 5 is a Map presentation whose position basis is the " Next Waypoint " , (any waypoint can be selected) as is determined by ;
<CustomDrawParam id="Latitude" Name="Latitude">
<Value>(A:GPS WP NEXT LAT, Radians)</Value>
</CustomDrawParam>
<CustomDrawParam id="Longitude" Name="Longitude">
<Value>(A:GPS WP NEXT LON, Radians)</Value>
</CustomDrawParam>
Item 3.
I have two separate Geo Calc functions that are based on ;
(ALANE LATITUDE,degrees)
(ALANE LONGITUDE,degrees)
Both work as desired.
I now need to implement the the same Geo Calc function when Enum 5 is selected ,
ie;
(A:GPS WP NEXT LAT,degrees)
(A:GPS WP NEXT LON,degrees)
Basically,
replace
(ALANE LATITUDE,degrees)
with
(ALANE LATITUDE,degrees) else (A:GPS WP NEXT LAT,degrees) if (L:GrndMap_Variant,enum) 5
and
replace
(ALANE LONGITUDE,degrees)
with
(ALANE LONGITUDE,degrees) else (A:GPS WP NEXT LON,degrees) if (L:GrndMap_Variant,enum) 5
How do I write the part that allows the Geo Calc to do the two Enum conditions ?
Cheers
Karol
The display modes are as follows:
(L:GrndMap_Variant,enum) 0 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 1 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 2 = Scrollable Fligt Plan list text .
(L:GrndMap_Variant,enum) 3 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 4 = Map at aircraft current position .
(L:GrndMap_Variant,enum) 5 = Stand Off - Map at Next Waypoint(s) .
Item 1.
Enums 0 , 1 , 3 and 4 are all the same Map presentation each having different elevation tint colours.
The map position basis is the aircraft's current position as is determined by ;
<CustomDrawParam id="Latitude" Name="Latitude">
<Value>(ALANE LATITUDE,Radians)</Value>
</CustomDrawParam>
<CustomDrawParam id="Longitude" Name="Longitude">
<Value>(ALANE LONGITUDE,Radians)</Value>
</CustomDrawParam>
Item 2.
Enum 5 is a Map presentation whose position basis is the " Next Waypoint " , (any waypoint can be selected) as is determined by ;
<CustomDrawParam id="Latitude" Name="Latitude">
<Value>(A:GPS WP NEXT LAT, Radians)</Value>
</CustomDrawParam>
<CustomDrawParam id="Longitude" Name="Longitude">
<Value>(A:GPS WP NEXT LON, Radians)</Value>
</CustomDrawParam>
Item 3.
I have two separate Geo Calc functions that are based on ;
(ALANE LATITUDE,degrees)
(ALANE LONGITUDE,degrees)
Both work as desired.
I now need to implement the the same Geo Calc function when Enum 5 is selected ,
ie;
(A:GPS WP NEXT LAT,degrees)
(A:GPS WP NEXT LON,degrees)
Basically,
replace
(ALANE LATITUDE,degrees)
with
(ALANE LATITUDE,degrees) else (A:GPS WP NEXT LAT,degrees) if (L:GrndMap_Variant,enum) 5
and
replace
(ALANE LONGITUDE,degrees)
with
(ALANE LONGITUDE,degrees) else (A:GPS WP NEXT LON,degrees) if (L:GrndMap_Variant,enum) 5
How do I write the part that allows the Geo Calc to do the two Enum conditions ?
Cheers
Karol
Last edited: