differential_pressure/ets: set invalid temperature to NAN

This commit is contained in:
Daniel Agar 2020-11-02 13:27:52 -05:00
parent 2af6333351
commit b79eec5e84

View File

@ -146,7 +146,7 @@ ETSAirspeed::collect()
// XXX we may want to smooth out the readings to remove noise.
report.differential_pressure_filtered_pa = diff_pres_pa_raw;
report.differential_pressure_raw_pa = diff_pres_pa_raw;
report.temperature = -1000.0f;
report.temperature = NAN;
report.device_id = _device_id.devid;
_airspeed_pub.publish(report);