summaryrefslogtreecommitdiff
path: root/src/product
diff options
context:
space:
mode:
Diffstat (limited to 'src/product')
-rw-r--r--src/product/Makefile.teledongle2
-rw-r--r--src/product/Makefile.telelaunch2
-rw-r--r--src/product/Makefile.telemetrum1
-rw-r--r--src/product/Makefile.telenano2
-rw-r--r--src/product/ao_micropeak.c3
-rw-r--r--src/product/ao_micropeak.h13
6 files changed, 19 insertions, 4 deletions
diff --git a/src/product/Makefile.teledongle b/src/product/Makefile.teledongle
index 81151364..b7c28987 100644
--- a/src/product/Makefile.teledongle
+++ b/src/product/Makefile.teledongle
@@ -83,7 +83,7 @@ quiet ?= $($1)
all: $(PROG)
$(PROG): $(REL) Makefile
- $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
+ $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
$(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
ao_product.h: ao-make-product.5c ../Version
diff --git a/src/product/Makefile.telelaunch b/src/product/Makefile.telelaunch
index 90fe7833..7311c21e 100644
--- a/src/product/Makefile.telelaunch
+++ b/src/product/Makefile.telelaunch
@@ -85,7 +85,7 @@ quiet ?= $($1)
all: $(PROG)
$(PROG): $(REL) Makefile
- $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
+ $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
$(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
ao_product.h: ao-make-product.5c ../Version
diff --git a/src/product/Makefile.telemetrum b/src/product/Makefile.telemetrum
index dbbf57d8..e9b144c0 100644
--- a/src/product/Makefile.telemetrum
+++ b/src/product/Makefile.telemetrum
@@ -24,6 +24,7 @@ INC = \
altitude.h \
ao_kalman.h \
ao_product.h \
+ ao_telemetry.h \
$(TM_INC)
CORE_SRC = \
diff --git a/src/product/Makefile.telenano b/src/product/Makefile.telenano
index d2fcb6d8..e1e350a6 100644
--- a/src/product/Makefile.telenano
+++ b/src/product/Makefile.telenano
@@ -85,7 +85,7 @@ quiet ?= $($1)
all: $(PROG)
$(PROG): $(REL) Makefile
- $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL) && cp $(PROG) $(PMAP) ..
+ $(call quiet,CC) $(LDFLAGS) $(CFLAGS) -o $(PROG) $(REL)
$(call quiet,CHECK_STACK) ../cc1111/ao_arch.h $(PMEM) || rm $@
ao_product.h: ao-make-product.5c ../Version
diff --git a/src/product/ao_micropeak.c b/src/product/ao_micropeak.c
index 10f0d192..54522d86 100644
--- a/src/product/ao_micropeak.c
+++ b/src/product/ao_micropeak.c
@@ -73,8 +73,9 @@ main(void)
ao_report_altitude();
ao_pips();
ao_log_micro_dump();
-
+#if BOOST_DELAY
ao_delay(BOOST_DELAY);
+#endif
ao_microflight();
diff --git a/src/product/ao_micropeak.h b/src/product/ao_micropeak.h
index 0ec407d7..622f5a69 100644
--- a/src/product/ao_micropeak.h
+++ b/src/product/ao_micropeak.h
@@ -29,8 +29,21 @@
#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 */
+#ifndef BOOST_DELAY
#define BOOST_DELAY AO_SEC_TO_TICKS(60)
+#endif
/* Pressure change (in Pa) to detect landing */
#define LAND_DETECT 24 /* 2m at sea level, 2.4m at 2000m */