mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 03:20:00 +03:00
Merge pull request #7244 from etracer65/gps_rescue_reset_max_alt
Reset GPS Rescue max altitude and distance on arming
This commit is contained in:
commit
e7d38eeacd
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue