Skip to content

Commit

Permalink
Prevent runaway takeoff detection during GPS Rescue flight mode (#8870)
Browse files Browse the repository at this point in the history
Prevent runaway takeoff detection during GPS Rescue flight mode
  • Loading branch information
mikeller committed Sep 12, 2019
2 parents 9db6072 + 7c52886 commit a29ba5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/fc/core.c
Expand Up @@ -1017,6 +1017,7 @@ static FAST_CODE void subTaskPidController(timeUs_t currentTimeUs)
&& !runawayTakeoffCheckDisabled
&& !flipOverAfterCrashActive
&& !runawayTakeoffTemporarilyDisabled
&& !FLIGHT_MODE(GPS_RESCUE_MODE) // disable Runaway Takeoff triggering if GPS Rescue is active
&& (!featureIsEnabled(FEATURE_MOTOR_STOP) || airmodeIsEnabled() || (calculateThrottleStatus() != THROTTLE_LOW))) {

if (((fabsf(pidData[FD_PITCH].Sum) >= RUNAWAY_TAKEOFF_PIDSUM_THRESHOLD)
Expand Down

0 comments on commit a29ba5f

Please sign in to comment.