mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-19 09:54:15 +01:00
OP-1192 Do not allow craft to be armed if input is incorrectly calibrated (and throttle cant go < 0 )
This commit is contained in:
parent
a41930a5e2
commit
ee452c8d4d
@ -1043,7 +1043,7 @@ static void setArmedIfChanged(uint8_t val)
|
||||
*/
|
||||
static void processArm(ManualControlCommandData *cmd, ManualControlSettingsData *settings, int8_t armSwitch)
|
||||
{
|
||||
bool lowThrottle = cmd->Throttle <= 0;
|
||||
bool lowThrottle = cmd->Throttle < 0;
|
||||
|
||||
/**
|
||||
* do NOT check throttle if disarming via switch, must be instant
|
||||
|
Loading…
x
Reference in New Issue
Block a user