- Messages
- 244
- Country
Programming a MSFS html nav intrument I'm stepping though the waypoints in the loaded flightplan by the standard process(?):
Am I doing something stupid? Or has my memory from FSX decayed over the past decade? Any hints / clues / comments MUCH appreciated.
- writing C:fs9gps:FlightPlanWaypointIndex, and then
- reading e.g. C:fs9gps:FlightPlanWaypointIdent for each waypoint.
- On load, the sim is adding additional waypoints into the fs9gps data i.e. 3.TIMECRUIS, 4.TIMEDCNT. I know what these are for (getting the plane to/from the cruise altitude) but I don't remember the actual flight plan being modified before and will need to skip this stuff for my VFR (glider!) flight where the altitudes are garbage.
- The waypoint data for FlightPlanWaypointIndex=0 seems unreliable, i.e. at the start of the flight it contains the start Airport, but AFTER CYCLING ROUND the [C:fs9gps:FlightPlanWaypointsNumber] set of waypoints, the info for the waypoint at [0] is all null (i.e. Ident, Lat, Long). Note I am only modifying FlightPlanWaypointIndex, not FlightPlanIsActiveWaypoint, and sitting at the start Airport.
- Selecting a waypoint by writing e.g. {3 -> C:fs9gps:FlightPlanWaypointIndex}, and then {true -> C:fs9gps:FlightPlanIsActiveWaypoint} does NOT result in the any of the "GPS" variables being updated for the selected waypoint (e.g. "GPS WP DISTANCE") although those do remain set for waypoint[0].
Am I doing something stupid? Or has my memory from FSX decayed over the past decade? Any hints / clues / comments MUCH appreciated.
Last edited: