mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Fixed potentially incorrect calculation in ACC calibration if non-default cycle number is used.
This commit is contained in:
parent
a7cd21e632
commit
a21d0f5d31
10 changed files with 14 additions and 21 deletions
|
@ -63,7 +63,6 @@
|
|||
#include "sensors/barometer.h"
|
||||
#include "sensors/battery.h"
|
||||
#include "sensors/gyro.h"
|
||||
#include "sensors/sensors.h"
|
||||
|
||||
#include "rc_controls.h"
|
||||
|
||||
|
@ -278,7 +277,7 @@ void processRcStickPositions()
|
|||
#ifdef USE_ACC
|
||||
if (rcSticks == THR_HI + YAW_LO + PIT_LO + ROL_CE) {
|
||||
// Calibrating Acc
|
||||
accSetCalibrationCycles(CALIBRATING_ACC_CYCLES);
|
||||
accStartCalibration();
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue