mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Unify protocol scaling handling
This commit is contained in:
parent
0ffcac2974
commit
af5b36b0fe
2 changed files with 81 additions and 30 deletions
|
@ -99,7 +99,7 @@ bool areSticksDeflectedMoreThanPosHoldDeadband(void)
|
|||
return (ABS(rcCommand[ROLL]) > rcControlsConfig()->pos_hold_deadband) || (ABS(rcCommand[PITCH]) > rcControlsConfig()->pos_hold_deadband);
|
||||
}
|
||||
|
||||
throttleStatus_e calculateThrottleStatus(throttleStatusType_e type)
|
||||
throttleStatus_e FAST_CODE NOINLINE calculateThrottleStatus(throttleStatusType_e type)
|
||||
{
|
||||
int value;
|
||||
if (type == THROTTLE_STATUS_TYPE_RC) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue