How to use the FlightSimData type in USB Type "Flight Sim Controls"?

Hi,

I need to get string data from XPlane. I tried use FlightSimData type but not working.


Code:
// Type declaration
FlightSimData GpsNavIdAircraft;

//onChange fuction
void update_display_gps_nav_id(char *val) {
????
}

void setup(){
...
GpsNavIdAircraft = XPlaneRef("sim/cockpit2/radios/indicators/gps_nav_id");
GpsNavIdAircraft.onChange(update_display_gps_nav_id);
...
}
 
Back
Top