Skip to content

Commit

Permalink
Merge pull request betaflight#7244 from etracer65/gps_rescue_reset_ma…
Browse files Browse the repository at this point in the history
…x_alt

Reset GPS Rescue max altitude and distance on arming
  • Loading branch information
mikeller authored Dec 21, 2018
2 parents 27dda73 + 8ab185c commit e7d38ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/flight/gps_rescue.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ static void idleTasks()
{
// Do not calculate any of the idle task values when we are not flying
if (!ARMING_FLAG(ARMED)) {
rescueState.sensor.maxAltitudeCm = 0;
rescueState.sensor.maxDistanceToHomeM = 0;
return;
}

Expand Down

0 comments on commit e7d38ee

Please sign in to comment.