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

Fixed potentially incorrect calculation in ACC calibration if n… (#9177)

Fixed potentially incorrect calculation in ACC calibration if non-default cycle number is used.
This commit is contained in:
Michael Keller 2019-11-17 23:21:33 +13:00 committed by mikeller
parent 2fe2719345
commit 5f0637c715
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"
@ -848,7 +847,7 @@ void init(void)
#ifdef USE_ACC
if (mixerConfig()->mixerMode == MIXER_GIMBAL) {
accSetCalibrationCycles(CALIBRATING_ACC_CYCLES);
accStartCalibration();
}
#endif
gyroStartCalibration(false);