mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
lib/sensor_calibration: decrease gyro cal change threshold
This commit is contained in:
parent
dbba9adb14
commit
f4d7932503
@ -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++;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user