diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-18 18:53:37 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-08-18 18:53:37 +0200 |
commit | 9e82f14ad805dab3be7fcba701430db54c4b339f (patch) | |
tree | 5a2c75cc8762ddcfffe856030813ccab13204244 /src | |
parent | 9a1fcb4c4ab0703400909f43e225632616e854fb (diff) | |
download | px4-firmware-9e82f14ad805dab3be7fcba701430db54c4b339f.tar.gz px4-firmware-9e82f14ad805dab3be7fcba701430db54c4b339f.tar.bz2 px4-firmware-9e82f14ad805dab3be7fcba701430db54c4b339f.zip |
Mag scale check: only test if the scale roughly makes sense, do not judge the environment
Diffstat (limited to 'src')
-rw-r--r-- | src/systemcmds/tests/test_sensors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemcmds/tests/test_sensors.c b/src/systemcmds/tests/test_sensors.c index a4f17eebd..e005bf9c1 100644 --- a/src/systemcmds/tests/test_sensors.c +++ b/src/systemcmds/tests/test_sensors.c @@ -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; } |