Hi
Does anyone know how to set data to a tagged object? I'm able to read from the tagged format, but haven't figured out how to write. Let's say I only want to write the Prop2 value. Is it possible to only write to that variable, or do I have to write to the whole struct (Prop1 and Prop2)? I can't seem to find any examples of only 1 datum id being written.
Thanks
Bobby
Does anyone know how to set data to a tagged object? I'm able to read from the tagged format, but haven't figured out how to write. Let's say I only want to write the Prop2 value. Is it possible to only write to that variable, or do I have to write to the whole struct (Prop1 and Prop2)? I can't seem to find any examples of only 1 datum id being written.
Thanks
Bobby
Code:
SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_PROPELLER, "GENERAL ENG PROPELLER LEVER POSITION:1", "percent",
SIMCONNECT_DATATYPE_FLOAT32, 0, DATA_PROP1);
SimConnect_AddToDataDefinition(hSimConnect, DEFINITION_PROPELLER, "GENERAL ENG PROPELLER LEVER POSITION:2", "percent",
SIMCONNECT_DATATYPE_FLOAT32, 0, DATA_PROP2);
SimConnect_RequestDataOnSimObject(hSimConnect, REQUEST_PROPELLER, DEFINITION_PROPELLER, SIMCONNECT_OBJECT_ID_USER,
SIMCONNECT_PERIOD_VISUAL_FRAME, SIMCONNECT_DATA_REQUEST_FLAG_CHANGED | SIMCONNECT_DATA_REQUEST_FLAG_TAGGED );
SimConnect_SetDataOnSimObject(hSimConnect, DEFINITION_PROPELLER, SIMCONNECT_OBJECT_ID_USER,
SIMCONNECT_DATA_SET_FLAG_TAGGED, 0, sizeof(???), &?????);
