mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
separate function for only roll/pitch stick deflection
This commit is contained in:
parent
dac60f7a73
commit
156c947d3c
4 changed files with 9 additions and 3 deletions
|
@ -103,6 +103,11 @@ bool areSticksDeflected(void)
|
|||
return (ABS(rcCommand[ROLL]) > rcControlsConfig()->control_deadband) || (ABS(rcCommand[PITCH]) > rcControlsConfig()->control_deadband) || (ABS(rcCommand[YAW]) > rcControlsConfig()->control_deadband);
|
||||
}
|
||||
|
||||
bool isRollPitchStickDeflected(void)
|
||||
{
|
||||
return (ABS(rcCommand[ROLL]) > rcControlsConfig()->control_deadband) || (ABS(rcCommand[PITCH]) > rcControlsConfig()->control_deadband);
|
||||
}
|
||||
|
||||
throttleStatus_e FAST_CODE NOINLINE calculateThrottleStatus(throttleStatusType_e type)
|
||||
{
|
||||
int value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue