mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
[CALIBRATION] Separate library for zero calibration with variance calculation (time based, with retry); Migrate GYRO and ACC to new calibration; Implement movement threshold for acc calibration to discard shaky measurements
This commit is contained in:
parent
96bd8149bc
commit
f8017b9d35
11 changed files with 338 additions and 99 deletions
|
@ -235,7 +235,7 @@ void processRcStickPositions(throttleStatus_e throttleStatus)
|
|||
|
||||
// GYRO calibration
|
||||
if (rcSticks == THR_LO + YAW_LO + PIT_LO + ROL_CE) {
|
||||
gyroSetCalibrationCycles(CALIBRATING_GYRO_CYCLES);
|
||||
gyroStartCalibration();
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -317,7 +317,7 @@ void processRcStickPositions(throttleStatus_e throttleStatus)
|
|||
|
||||
// Calibrating Acc
|
||||
if (rcSticks == THR_HI + YAW_LO + PIT_LO + ROL_CE) {
|
||||
accSetCalibrationCycles(CALIBRATING_ACC_CYCLES);
|
||||
accStartCalibration();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue