Skip to content
Snippets Groups Projects
Commit 1cbedc06 authored by Randy Mackay's avatar Randy Mackay
Browse files

AP_InertialSensor: relax accel offset sanity check

parent 493c2b6a
No related branches found
No related tags found
No related merge requests found
......@@ -477,7 +477,7 @@ bool AP_InertialSensor::_calibrate_accel( Vector3f accel_sample[6],
success = false;
}
// sanity check offsets (2.0 is roughly 2/10th of a G, 5.0 is roughly half a G)
if( accel_offsets.is_nan() || fabsf(accel_offsets.x) > 2.0f || fabsf(accel_offsets.y) > 2.0f || fabsf(accel_offsets.z) > 3.0f ) {
if( accel_offsets.is_nan() || fabsf(accel_offsets.x) > 3.0f || fabsf(accel_offsets.y) > 3.0f || fabsf(accel_offsets.z) > 3.0f ) {
success = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment