NOW I just need to be able to set a DIRECT TO Waypoint and I’ll be near completion of my application.
C# I’m using the MSFS stock A320 and the C172 G1000.
I am able to read the list of waypoints, destination airport and destination runway, but when I do a goaround (and other time) I need to set a waypoint and DIRECT TO function. Can I do this with a EVENT?
I have GPS IS DIRECTTO FLIGHTPLAN set but need to set the waypoint for it
NOTE:
I HAVE FOUND this in the docs but It is for an AI aircraft
can I use this? but what is my current AIAircraftID ??
to send data in an array, copy the array to a polymorphic object array. For example, to apply a waypoint list to an AI aircraft, go through the following steps using C#:
simconnect.AddToDataDefinition(DEFINITIONS.1,"AI WAYPOINT LIST", "number", SIMCONNECT_DATATYPE.WAYPOINT, 0.0f, SimConnect.SIMCONNECT_UNUSED);
o send data in an array, copy the array to a polymorphic object array. For example, to apply a waypoint list to an AI aircraft, go through the following steps using C#:
simconnect.AddToDataDefinition(DEFINITIONS.1,"AI WAYPOINT LIST", "number", SIMCONNECT_DATATYPE.WAYPOINT, 0.0f, SimConnect.SIMCONNECT_UNUSED);
Object[] objv = new Object[waypoints.Length]; waypoints.CopyTo(objv, 0
simconnect.SetDataOnSimObject(DEFINITIONS.WaypointDef, AIAircraftID, SIMCONNECT_DATA_SET_FLAG.DEFAULT, objv);