lib/sensor_calibration: decrease gyro cal change threshold

This commit is contained in:
Daniel Agar 2024-10-15 21:27:42 -04:00
parent dbba9adb14
commit f4d7932503

View File

@ -110,7 +110,7 @@ void Gyroscope::SensorCorrectionsUpdate(bool force)
bool Gyroscope::set_offset(const Vector3f &offset)
{
if (Vector3f(_offset - offset).longerThan(0.01f) || (_calibration_count == 0)) {
if (Vector3f(_offset - offset).longerThan(0.001f) || (_calibration_count == 0)) {
if (offset.isAllFinite()) {
_offset = offset;
_calibration_count++;