Driving Cockpit Displays

Discuss on the SimConnect SDK can be used by programmers to write add-on components for Prepar3D
Post Reply
j2aircraft
Posts: 4
Joined: Wed Dec 15, 2010 7:05 pm

Driving Cockpit Displays

Post by j2aircraft »

We have written a CIGI plug-in for P3D so that our Host can drive P3D for OTW and Cockpit displays. The OTW works great but only some of the cockpit displays work. We drive it with the following:
SimConnect_AddToDataDefinition(hSimConnect, PER_VEHICLE_OUTPUT_DEFINITION, "PLANE LATITUDE", "degrees", SIMCONNECT_DATATYPE_FLOAT64);
SimConnect_AddToDataDefinition(hSimConnect, PER_VEHICLE_OUTPUT_DEFINITION, "PLANE LONGITUDE", "degrees", SIMCONNECT_DATATYPE_FLOAT64);
SimConnect_AddToDataDefinition(hSimConnect, PER_VEHICLE_OUTPUT_DEFINITION, "PLANE ALTITUDE", "meters", SIMCONNECT_DATATYPE_FLOAT64);
SimConnect_AddToDataDefinition(hSimConnect, PER_VEHICLE_OUTPUT_DEFINITION, "PLANE PITCH DEGREES", "degrees", SIMCONNECT_DATATYPE_FLOAT64);
SimConnect_AddToDataDefinition(hSimConnect, PER_VEHICLE_OUTPUT_DEFINITION, "PLANE BANK DEGREES", "degrees", SIMCONNECT_DATATYPE_FLOAT64);
SimConnect_AddToDataDefinition(hSimConnect, PER_VEHICLE_OUTPUT_DEFINITION, "PLANE HEADING DEGREES TRUE", "degrees", SIMCONNECT_DATATYPE_FLOAT64);

What we see is the altimeter moves but nothing else. When working with X-Plane there are many other parameters that need writing to to drive other displays (e.g. Attitude) depending upon pressure sensor, GPS, Gyro etc. However I cant find anything in the SimConnect documentation that can be written to. I can find the variable to read but there is nothing that explains how the value is calculated or set.
Post Reply