AP_InertialSensor: don't mark accels as calibrating during trim
we need the accels with offsets applied when doing accel trim
This commit is contained in:
parent
e908a996af
commit
b542f947f7
@ -1214,8 +1214,6 @@ bool AP_InertialSensor::calibrate_trim(float &trim_roll, float &trim_pitch)
|
||||
return false;
|
||||
}
|
||||
|
||||
_calibrating_accel = true;
|
||||
|
||||
const uint8_t update_dt_milliseconds = (uint8_t)(1000.0f/get_loop_rate_hz()+0.5f);
|
||||
|
||||
// wait 100ms for ins filter to rise
|
||||
@ -1246,11 +1244,9 @@ bool AP_InertialSensor::calibrate_trim(float &trim_roll, float &trim_pitch)
|
||||
goto failed;
|
||||
}
|
||||
|
||||
_calibrating_accel = false;
|
||||
return true;
|
||||
|
||||
failed:
|
||||
_calibrating_accel = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user