Update flight algorithm based on data collected from SN-1 Flight 1
[fw/altos] / Makefile
index 7bf2bee5d0d6ad71647d5c167d1da712efd26e40..221526f7ccb1f0b1e632fa4fe0d91ac494ac06c3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ CC=sdcc
 CFLAGS=--model-small --debug --opt-code-speed 
 
 LDFLAGS=--out-fmt-ihx --code-loc 0x0000 --code-size 0x8000 \
-       --xram-loc 0xf000 --xram-size 0xf00 --iram-size 0xff
+       --xram-loc 0xf000 --xram-size 0xda2 --iram-size 0xff
 
 INC = \
        ao.h \
@@ -61,7 +61,8 @@ TELE_DRIVER_SRC = \
 #
 TM_DRIVER_SRC = \
        ao_adc.c \
-       ao_ee.c
+       ao_ee.c \
+       ao_ignite.c
 
 #
 # Tasks run on TeleMetrum
@@ -152,6 +153,8 @@ SYM=$(SRC:.c=.sym)
 
 PROGS=telemetrum.ihx tidongle.ihx teleterra.ihx teledongle.ihx
 
+HOST_PROGS=ao_flight_test
+
 PCDB=$(PROGS:.ihx=.cdb)
 PLNK=$(PROGS:.ihx=.lnk)
 PMAP=$(PROGS:.ihx=.map)
@@ -161,7 +164,7 @@ PAOM=$(PROGS:.ihx=)
 %.rel : %.c $(INC)
        $(CC) -c $(CFLAGS) -o$*.rel $*.c
 
-all: $(PROGS)
+all: $(PROGS) $(HOST_PROGS)
 
 telemetrum.ihx: $(TM_REL) Makefile
        $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TM_REL)
@@ -193,3 +196,6 @@ clean:
        rm -f $(PROGS) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
 
 install:
+
+ao_flight_test: ao_flight.c ao_flight_test.c
+       cc -g -o $@ ao_flight_test.c