I tried for now two aircrafts (Cessna 172 Skyhawk G1000 and Carenado PA44 Seminole ) and the result is the same.
My c# code taken from example at WWW:
sim.AddToDataDefinition(DEFINITIONS.Struct2, "HEADING_BUG_SET", "degrees", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
sim.RegisterDataDefineStruct<Struct2>(DEFINITIONS.Struct2);
Struct2 s2 = new Struct2();
s2.heading = Convert.ToInt32(headp.Text);
sim.SetDataOnSimObject(DEFINITIONS.Struct2, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, s2);
Thks for your help
Note - before I saw this site I reported this bug at Flight Simulator Zendesk some minutes ago
My c# code taken from example at WWW:
sim.AddToDataDefinition(DEFINITIONS.Struct2, "HEADING_BUG_SET", "degrees", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
sim.RegisterDataDefineStruct<Struct2>(DEFINITIONS.Struct2);
Struct2 s2 = new Struct2();
s2.heading = Convert.ToInt32(headp.Text);
sim.SetDataOnSimObject(DEFINITIONS.Struct2, SimConnect.SIMCONNECT_OBJECT_ID_USER, SIMCONNECT_DATA_SET_FLAG.DEFAULT, s2);
Thks for your help
Note - before I saw this site I reported this bug at Flight Simulator Zendesk some minutes ago