Browse Source

Mag scale check: only test if the scale roughly makes sense, do not judge the environment

sbg
Lorenz Meier 11 years ago
parent
commit
9e82f14ad8
  1. 2
      src/systemcmds/tests/test_sensors.c

2
src/systemcmds/tests/test_sensors.c

@ -331,7 +331,7 @@ mag(int argc, char *argv[]) @@ -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;
}

Loading…
Cancel
Save