mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
AHRS: Make arm timeout of 0 disable feature for planes. Don't want them arming
out. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2205 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
c23df70b49
commit
d218e18ded
@ -287,7 +287,9 @@ static void manualControlTask(void *parameters)
|
||||
lowThrottleStart = lastSysTime;
|
||||
} else if (cmd.Throttle >= 0)
|
||||
lowThrottleDetected = 0;
|
||||
else if((cmd.Throttle < 0) && (timeDifferenceMs(lowThrottleStart, lastSysTime) > settings.ArmedTimeout)) {
|
||||
else if((cmd.Throttle < 0) &&
|
||||
(timeDifferenceMs(lowThrottleStart, lastSysTime) > settings.ArmedTimeout) &
|
||||
(settings.ArmedTimeout != 0) ) {
|
||||
cmd.Armed = MANUALCONTROLCOMMAND_ARMED_FALSE;
|
||||
ManualControlCommandSet(&cmd);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user