mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Failsafe: Looking for takeoff_complete now vs unreliable GPS
This commit is contained in:
parent
394f8c6eb0
commit
c523a9822b
@ -147,7 +147,7 @@ static void throttle_failsafe(uint16_t pwm)
|
|||||||
// Don't enter Failsafe if we are not armed
|
// Don't enter Failsafe if we are not armed
|
||||||
// home distance is in meters
|
// home distance is in meters
|
||||||
// This is to prevent accidental RTL
|
// This is to prevent accidental RTL
|
||||||
if(motors.armed() && (home_distance > 1000)){
|
if(motors.armed() && takeoff_complete){
|
||||||
SendDebug("MSG FS ON ");
|
SendDebug("MSG FS ON ");
|
||||||
SendDebugln(pwm, DEC);
|
SendDebugln(pwm, DEC);
|
||||||
set_failsafe(true);
|
set_failsafe(true);
|
||||||
|
Loading…
Reference in New Issue
Block a user