mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Merge pull request #6063 from dbasch/alt-fix
[GPS Rescue] - Do not run idle tasks when disarmed
This commit is contained in:
commit
ef12eebe57
1 changed files with 5 additions and 0 deletions
|
@ -293,6 +293,11 @@ void rescueStop()
|
|||
// Things that need to run regardless of GPS rescue mode being enabled or not
|
||||
void idleTasks()
|
||||
{
|
||||
// Do not calculate any of the idle task values when we are not flying
|
||||
if (!ARMING_FLAG(ARMED)) {
|
||||
return;
|
||||
}
|
||||
|
||||
gpsRescueAngle[AI_PITCH] = 0;
|
||||
gpsRescueAngle[AI_ROLL] = 0;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue