Added getPOSI and getCTRL support to the C client.

This commit is contained in:
Jason Watkins
2015-05-16 09:26:27 -07:00
parent 292f347982
commit 0b562d1fce
6 changed files with 169 additions and 1 deletions

View File

@@ -530,7 +530,10 @@ namespace XPC
*((float*)(response + 18)) = DataManager::GetFloat(DREF_Pitch, aircraft);
*((float*)(response + 22)) = DataManager::GetFloat(DREF_Roll, aircraft);
*((float*)(response + 26)) = DataManager::GetFloat(DREF_HeadingTrue, aircraft);
*((float*)(response + 30)) = (float)DataManager::GetInt(DREF_GearHandle, aircraft);
float gear[10];
DataManager::GetFloatArray(DREF_GearDeploy, gear, 10, aircraft);
*((float*)(response + 30)) = gear[0];
sock->SendTo(response, 34, &connection.addr);
}