summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2017-04-21 09:17:18 -0700
committerKeith Packard <keithp@keithp.com>2017-04-21 09:17:18 -0700
commitec319edd2cda321d7542784b997acd0da040fa3d (patch)
tree6a6134a0a2ef2fd8c19f732cdfc8aed05033bbc6
parent7db49a2052ec905cdc02f626c0933ca6889d64a4 (diff)
ao-test-baro: Be more lax about altitude checks
High pressure here today and the altimeter is reading -69m. Allow down to -100m when testing baro values. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--ao-tools/ao-test-baro/ao-test-baro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-tools/ao-test-baro/ao-test-baro.c b/ao-tools/ao-test-baro/ao-test-baro.c
index d2b81e4f..36c805c2 100644
--- a/ao-tools/ao-test-baro/ao-test-baro.c
+++ b/ao-tools/ao-test-baro/ao-test-baro.c
@@ -164,7 +164,7 @@ do_baro(struct cc_usb *usb) {
double temperature = strtod(temp[2], NULL) / 100.0;
double altitude = strtod(alt[1], NULL);
- if (altitude < -50 || 3000 < altitude) {
+ if (altitude < -100 || 3000 < altitude) {
printf ("weird altitude %f\n", altitude);
free_baro(b);
return 0;