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.