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
|
@ -177,6 +177,8 @@ static void idleTasks()
|
||||||
{
|
{
|
||||||
// Do not calculate any of the idle task values when we are not flying
|
// Do not calculate any of the idle task values when we are not flying
|
||||||
if (!ARMING_FLAG(ARMED)) {
|
if (!ARMING_FLAG(ARMED)) {
|
||||||
|
rescueState.sensor.maxAltitudeCm = 0;
|
||||||
|
rescueState.sensor.maxDistanceToHomeM = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue