OnGround now works
MISSING: Send of rev only if on ground Send not more than max forwards / max reverse (ON ARDUINO?)
This commit is contained in:
parent
14c6361fbd
commit
9a11896358
@ -252,8 +252,7 @@ void CALLBACK MyDispatchProcTC(SIMCONNECT_RECV* pData, DWORD cbData, void *pCont
|
||||
switch (data->dwRequestID) {
|
||||
case AC_ON_GROUND_REQUEST:
|
||||
{
|
||||
printf("\nOn ground: %f", &data->dwData);
|
||||
onGround = (int)&data->dwData;
|
||||
onGround = (int)((acOnGround *)&data->dwData)->onGround;
|
||||
break;
|
||||
}
|
||||
case AC_DATA_REQUEST:
|
||||
@ -530,6 +529,10 @@ int __cdecl _tmain(int argc, _TCHAR* argv[])
|
||||
}
|
||||
// Start TQ
|
||||
throttleControl();
|
||||
// Turn off
|
||||
Sleep(10);
|
||||
arduino->writeSerialPort("r", 1);
|
||||
Sleep(10);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -60,6 +60,10 @@ struct aircraftData {
|
||||
double lowerThrottleLimit;
|
||||
};
|
||||
|
||||
struct acOnGround {
|
||||
double onGround;
|
||||
};
|
||||
|
||||
// Structs for engines
|
||||
struct engineAll {
|
||||
double throttlePercent;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user