1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00

Fixed potentially incorrect calculation in ACC calibration if non-default cycle number is used.

This commit is contained in:
mikeller 2019-11-16 12:45:58 +13:00
parent a7cd21e632
commit a21d0f5d31
10 changed files with 14 additions and 21 deletions

View file

@ -164,7 +164,6 @@
#include "sensors/esc_sensor.h"
#include "sensors/gyro.h"
#include "sensors/initialisation.h"
#include "sensors/sensors.h"
#include "telemetry/telemetry.h"
@ -875,7 +874,7 @@ void init(void)
#ifdef USE_ACC
if (mixerConfig()->mixerMode == MIXER_GIMBAL) {
accSetCalibrationCycles(CALIBRATING_ACC_CYCLES);
accStartCalibration();
}
#endif
gyroStartCalibration(false);