diff options
author | Keith Packard <keithp@keithp.com> | 2014-05-12 22:48:45 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2014-05-12 22:48:45 -0700 |
commit | 5f4a1b3e553276a4d6727c111fe290fa3690fa1e (patch) | |
tree | 6299c792e681cbef05de8add37638200cf35caa7 /ao-bringup | |
parent | 238ddde1ffdb8521d06519306cfb76271ae552b9 (diff) |
ao-bringup: test-baro should accept altitudes a bit below sea level
Testing baro sensors on a particularly high pressure day at Keith's
house yields altitudes down to -20m or so.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-bringup')
-rwxr-xr-x | ao-bringup/test-baro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ao-bringup/test-baro b/ao-bringup/test-baro index 2116dce4..ce5b7f80 100755 --- a/ao-bringup/test-baro +++ b/ao-bringup/test-baro @@ -71,7 +71,7 @@ do_baro(file f) { real temperature = string_to_integer(temp[2]) / 100.0; real altitude = string_to_integer(alt[1]); - if (altitude < 0 || 3000 < altitude) { + if (altitude < -50 || 3000 < altitude) { printf ("weird altitude %f\n", altitude); return false; } |