I am trying to make sense of the data I am getting back from FSX when using the RequestDataOnSimObject. I am new to FSX and Simconnect and I started by using the Microsoft sample project ESPDataRequest and added the lines:
public double attitude_pitch;
simconnect.AddToDataDefinition(DEFINITIONS.DataRequestStruct, "Attitude Indicator Pitch Degrees", "degrees", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
and then the following to populate a gui text box:
this.textBox_Attitude_Pitch.Text = userData.attitude_pitch.ToString();
I was under the assumption that I would get a positive angle in degrees when I was pitched up (in a climb) and a negative angle when pitched down (descending) but I am getting the exact opposite. I am also trying to make sense of the angle that I am receiving. I am closely monitoring the FSX Attitude indicator while also monitoring the SimConnect gui displaying the pitch on the attitude indicator. Each horizontal line above the horizon (straight and level) on the AI should represent 5 degrees of pitch however it does not seem to work that way. I am getting about three degrees when on the first line, 7 on the second, 11 on the third, and 15 on the forth.
I am flying the cessna 172 model. Is there something I am missing? I would expect to be seeing 20 degrees on the uppermost line?
Please Advise . . .
public double attitude_pitch;
simconnect.AddToDataDefinition(DEFINITIONS.DataRequestStruct, "Attitude Indicator Pitch Degrees", "degrees", SIMCONNECT_DATATYPE.FLOAT64, 0.0f, SimConnect.SIMCONNECT_UNUSED);
and then the following to populate a gui text box:
this.textBox_Attitude_Pitch.Text = userData.attitude_pitch.ToString();
I was under the assumption that I would get a positive angle in degrees when I was pitched up (in a climb) and a negative angle when pitched down (descending) but I am getting the exact opposite. I am also trying to make sense of the angle that I am receiving. I am closely monitoring the FSX Attitude indicator while also monitoring the SimConnect gui displaying the pitch on the attitude indicator. Each horizontal line above the horizon (straight and level) on the AI should represent 5 degrees of pitch however it does not seem to work that way. I am getting about three degrees when on the first line, 7 on the second, 11 on the third, and 15 on the forth.
I am flying the cessna 172 model. Is there something I am missing? I would expect to be seeing 20 degrees on the uppermost line?
Please Advise . . .



