altosui: Add config and pyro tabs to graph widget
[fw/altos] / src / kernel / ao_host.h
index e2f14e7963a38333c3a2f8686130d99e27006f3e..30df8edc0e66ffc7cc7f610adc57103edbfd881c 100644 (file)
@@ -32,7 +32,7 @@
  * One set of samples read from the A/D converter
  */
 struct ao_adc {
-       uint16_t        tick;           /* tick when the sample was read */
+       AO_TICK_TYPE    tick;           /* tick when the sample was read */
        int16_t         accel;          /* accelerometer */
        int16_t         pres;           /* pressure sensor */
        int16_t         temp;           /* temperature sensor */
@@ -81,12 +81,20 @@ struct ao_task {
        int dummy;
 };
 
+enum ao_igniter_status {
+       ao_igniter_unknown,     /* unknown status (ambiguous voltage) */
+       ao_igniter_ready,       /* continuity detected */
+       ao_igniter_active,      /* igniter firing */
+       ao_igniter_open,        /* open circuit detected */
+};
+
 #define ao_add_task(t,f,n)
 
 #define ao_log_start()
 #define ao_log_stop()
 
 #define AO_MS_TO_TICKS(ms)     ((ms) / 10)
+#define AO_NS_TO_TICKS(ns)     ((ns) / (10000000L))
 #define AO_SEC_TO_TICKS(s)     ((s) * 100)
 
 #define AO_FLIGHT_TEST