1
0
Fork 0
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:
Dominic Clifton 2014-08-01 01:14:23 +01:00
parent a6f4633272
commit 326a10b1dc
10 changed files with 30 additions and 2 deletions

View file

@ -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)) {