#define _GNU_SOURCE
#include <stdint.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#define HAS_MMA655X 1
#define HAS_HMC5883 1
#define HAS_BEEP 1
+#define HAS_BARO 1
#define AO_CONFIG_MAX_SIZE 1024
#define AO_MMA655X_INVERT 0
#define HAS_MMA655X 1
#define AO_MMA655X_INVERT 0
#define HAS_BEEP 1
+#define HAS_BARO 1
#define AO_CONFIG_MAX_SIZE 1024
struct ao_adc {
#define HAS_ACCEL 1
#define HAS_ACCEL_REF 0
#endif
+#define HAS_BARO 1
#endif
uint16_t ao_serial_number;
int16_t ao_flight_number;
-extern uint16_t ao_sample_tick;
+extern AO_TICK_TYPE ao_sample_tick;
#if HAS_BARO
extern alt_t ao_sample_height;
double ao_sample_qangle;
-int ao_sample_prev_tick;
-uint16_t prev_tick;
+AO_TICK_TYPE ao_sample_prev_tick;
+AO_TICK_TYPE prev_tick;
#include "ao_kalman.c"