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>
real temperature = string_to_integer(temp[2]) / 100.0;
real altitude = string_to_integer(alt[1]);
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;
}
printf ("weird altitude %f\n", altitude);
return false;
}