summaryrefslogtreecommitdiff
path: root/src/product
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-07-06 12:35:13 -0700
committerKeith Packard <keithp@keithp.com>2014-07-06 12:36:27 -0700
commitd1527a5457210eb914312cf8857bfb88982a8462 (patch)
treed11aefba40692dfb08e48bceffca8d74f0b412fb /src/product
parentf02cc3eec53e9d703837dad55ec2e6625b192588 (diff)
Add support for the "kite" micropeak variant
This uses a 100m 'launch detect' altitude and logs data every 19.2s instead of every .192s. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/product')
-rw-r--r--src/product/ao_micropeak.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/product/ao_micropeak.h b/src/product/ao_micropeak.h
index 0ec407d7..396b9a23 100644
--- a/src/product/ao_micropeak.h
+++ b/src/product/ao_micropeak.h
@@ -29,6 +29,17 @@
#define BOOST_DETECT 360 /* 30m at sea level, 36m at 2000m */
#endif
+#ifndef LOG_INTERVAL
+#define LOG_INTERVAL 2 /* 192 ms */
+#endif
+
+#define AO_LOG_ID_MICROPEAK 0
+#define AO_LOG_ID_MICROKITE 1
+
+#ifndef AO_LOG_ID
+#define AO_LOG_ID AO_LOG_ID_MICROPEAK
+#endif
+
/* Wait after power on before doing anything to give the user time to assemble the rocket */
#define BOOST_DELAY AO_SEC_TO_TICKS(60)