EasyTimer doesn't have a barometer.
Signed-off-by: Keith Packard <keithp@keithp.com>
ao_v_t ao_speed;
ao_v_t ao_accel;
ao_v_t ao_max_height;
-#if HAS_BARO
static ao_k_t ao_avg_height_scaled;
ao_v_t ao_avg_height;
-#endif
ao_v_t ao_error_h;
#if !HAS_ACCEL || AO_FLIGHT_TEST
ao_max_height = ao_height;
#if HAS_BARO
ao_avg_height_scaled = ao_avg_height_scaled - ao_avg_height + ao_sample_height;
+#else
+ ao_avg_height_scaled = ao_avg_height_scaled - ao_avg_height + ao_height;
+#endif
#ifdef AO_FLIGHT_TEST
if ((int16_t) (ao_sample_tick - ao_sample_prev_tick) > 50)
ao_avg_height = (ao_avg_height_scaled + 1) >> 1;
else
#endif
ao_avg_height = (ao_avg_height_scaled + 63) >> 7;
-#endif
}