1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-25 09:16:07 +03:00

Move calibrationCompleted flag to a 4th element in the accZero structure

Allows the flag indicating that calibration was completed to be output in the values for `acc_calibration`.
This commit is contained in:
Bruce Luckcuck 2019-10-21 11:49:11 -04:00
parent 565f1f4db5
commit 365c6cb1f6
6 changed files with 10 additions and 8 deletions

View file

@ -220,7 +220,7 @@ static bool accNeedsCalibration(void)
if (sensors(SENSOR_ACC)) {
// Check to see if the ACC has already been calibrated
if (accelerometerConfig()->calibrationCompleted ||
if (accelerometerConfig()->accZero.values.calibrationCompleted ||
accelerometerConfig()->accZero.values.roll != 0 ||
accelerometerConfig()->accZero.values.pitch != 0 ||
accelerometerConfig()->accZero.values.yaw != 0) {