airspeed_calibration: stop talking about Pa and and hashtags

This commit is contained in:
Julian Oes
2014-08-23 18:44:09 +02:00
parent 40fe9ab969
commit c6fb75f66f
2 changed files with 15 additions and 11 deletions
+5 -3
View File
@@ -232,6 +232,8 @@ MEASAirspeed::collect()
* tubes are connected backwards */
float diff_press_pa = diff_press_pa_raw;
warnx("diff preasure: %.4f", (double)diff_press_pa);
/*
note that we return both the absolute value with offset
applied and a raw value without the offset applied. This
@@ -259,9 +261,9 @@ MEASAirspeed::collect()
report.differential_pressure_filtered_pa = _filter.apply(diff_press_pa);
/* the dynamics of the filter can make it overshoot into the negative range */
if (report.differential_pressure_filtered_pa < 0.0f) {
report.differential_pressure_filtered_pa = _filter.reset(diff_press_pa);
}
//if (report.differential_pressure_filtered_pa < 0.0f) {
// report.differential_pressure_filtered_pa = _filter.reset(diff_press_pa);
//}
report.differential_pressure_raw_pa = diff_press_pa_raw;
report.max_differential_pressure_pa = _max_differential_pressure_pa;