mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
Revert "Moved updateGPSRescueState to imuUpdateAttitude. gps_rescue.c tidy."
This commit is contained in:
parent
7b035ce3a8
commit
4ead807edd
3 changed files with 91 additions and 93 deletions
|
@ -924,6 +924,10 @@ static FAST_CODE_NOINLINE void subTaskMainSubprocesses(timeUs_t currentTimeUs)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef USE_GPS_RESCUE
|
||||||
|
updateGPSRescueState();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef USE_SDCARD
|
#ifdef USE_SDCARD
|
||||||
afatfs_poll();
|
afatfs_poll();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -182,8 +182,6 @@ void updateGPSRescueState(void)
|
||||||
disarm();
|
disarm();
|
||||||
rescueStop();
|
rescueStop();
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
performSanityChecks();
|
performSanityChecks();
|
||||||
|
|
|
@ -41,7 +41,6 @@
|
||||||
#include "flight/imu.h"
|
#include "flight/imu.h"
|
||||||
#include "flight/mixer.h"
|
#include "flight/mixer.h"
|
||||||
#include "flight/pid.h"
|
#include "flight/pid.h"
|
||||||
#include "flight/gps_rescue.h"
|
|
||||||
|
|
||||||
#include "io/gps.h"
|
#include "io/gps.h"
|
||||||
|
|
||||||
|
@ -522,9 +521,6 @@ void imuUpdateAttitude(timeUs_t currentTimeUs)
|
||||||
acc.accADC[Y] = 0;
|
acc.accADC[Y] = 0;
|
||||||
acc.accADC[Z] = 0;
|
acc.accADC[Z] = 0;
|
||||||
}
|
}
|
||||||
#ifdef USE_GPS_RESCUE
|
|
||||||
updateGPSRescueState();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool shouldInitializeGPSHeading()
|
bool shouldInitializeGPSHeading()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue