mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 17:25:18 +03:00
Allow autotune to be compiled in/out.
This commit is contained in:
parent
a6f4633272
commit
326a10b1dc
10 changed files with 30 additions and 2 deletions
|
@ -100,6 +100,8 @@ void applyAndSaveAccelerometerTrimsDelta(rollAndPitchTrims_t *rollAndPitchTrimsD
|
|||
saveAndReloadCurrentProfileToCurrentProfileSlot();
|
||||
}
|
||||
|
||||
#ifdef AUTOTUNE
|
||||
|
||||
void updateAutotuneState(void)
|
||||
{
|
||||
static bool landedAfterAutoTuning = false;
|
||||
|
@ -134,6 +136,7 @@ void updateAutotuneState(void)
|
|||
landedAfterAutoTuning = true;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
bool isCalibrating()
|
||||
{
|
||||
|
@ -590,7 +593,10 @@ void loop(void)
|
|||
#ifdef BARO
|
||||
haveProcessedAnnexCodeOnce = true;
|
||||
#endif
|
||||
|
||||
#ifdef AUTOTUNE
|
||||
updateAutotuneState();
|
||||
#endif
|
||||
|
||||
#ifdef MAG
|
||||
if (sensors(SENSOR_MAG)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue