mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-08 18:52:46 +08:00
Merge branch 'master' of github.com:PX4/Firmware into as_fix
This commit is contained in:
@@ -331,7 +331,7 @@ mag(int argc, char *argv[])
|
||||
|
||||
float len = sqrtf(buf.x * buf.x + buf.y * buf.y + buf.z * buf.z);
|
||||
|
||||
if (len < 1.0f || len > 3.0f) {
|
||||
if (len < 0.25f || len > 3.0f) {
|
||||
warnx("MAG scale error!");
|
||||
return ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user