1
0
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:
Corvus Corax 2014-01-23 21:36:45 +01:00
parent a41930a5e2
commit ee452c8d4d

View File

@ -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