This is a lot more useful than the old filtered pressure data.
Signed-off-by: Keith Packard <keithp@keithp.com>
extern __pdata int16_t ao_min_pres;
extern __pdata uint16_t ao_launch_time;
extern __xdata uint8_t ao_flight_force_idle;
+#ifdef USE_KALMAN
+extern __pdata int16_t ao_ground_height;
+extern __pdata int32_t ao_k_max_height;
+extern __pdata int32_t ao_k_height;
+extern __pdata int32_t ao_k_speed;
+extern __pdata int32_t ao_k_accel;
+#endif
/* Flight thread */
void
if (ao_log_tiny_state == ao_flight_landed)
ao_log_stop();
}
- ao_log_tiny_data(ao_flight_pres); // XXX change to alt
+ ao_log_tiny_data(ao_k_height >> 16);
time += ao_log_tiny_interval;
delay = time - ao_time();
if (delay > 0)