1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 05:45:31 +03:00

Introduced 'baroStartCalibration()' / 'baroSetGroundLevel()' to make barometer code more self contained.

This commit is contained in:
mikeller 2019-11-16 12:48:47 +13:00
parent dd0b45dc87
commit ef556c0f59
8 changed files with 25 additions and 15 deletions

View file

@ -879,7 +879,7 @@ void init(void)
#endif
gyroStartCalibration(false);
#ifdef USE_BARO
baroSetCalibrationCycles(CALIBRATING_BARO_CYCLES);
baroStartCalibration();
#endif
#if defined(USE_VTX_COMMON) || defined(USE_VTX_CONTROL)