projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update flight algorithm based on data collected from SN-1 Flight 1
[fw/altos]
/
Makefile
diff --git
a/Makefile
b/Makefile
index b8059404c1a1a1d06cdf8291517524647296ba2b..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 \
CFLAGS=--model-small --debug --opt-code-speed
LDFLAGS=--out-fmt-ihx --code-loc 0x0000 --code-size 0x8000 \
- --xram-loc 0xf000 --xram-size 0x
f00
--iram-size 0xff
+ --xram-loc 0xf000 --xram-size 0x
da2
--iram-size 0xff
INC = \
ao.h \
INC = \
ao.h \
@@
-61,7
+61,8
@@
TELE_DRIVER_SRC = \
#
TM_DRIVER_SRC = \
ao_adc.c \
#
TM_DRIVER_SRC = \
ao_adc.c \
- ao_ee.c
+ ao_ee.c \
+ ao_ignite.c
#
# Tasks run on TeleMetrum
#
# Tasks run on TeleMetrum
@@
-111,6
+112,20
@@
TT_SRC = \
$(TT_TASK_SRC)
$(TT_TASK_SRC)
+#
+# Sources for TeleDongle
+#
+
+TD_TASK_SRC = \
+ ao_teledongle.c
+
+TD_SRC = \
+ $(ALTOS_SRC) \
+ $(ALTOS_DRIVER_SRC) \
+ $(TELE_RECEIVER_SRC) \
+ $(TELE_COMMON_SRC) \
+ $(TD_TASK_SRC)
+
SRC = \
$(ALTOS_SRC) \
$(ALTOS_DRIVER_SRC) \
SRC = \
$(ALTOS_SRC) \
$(ALTOS_DRIVER_SRC) \
@@
-119,11
+134,14
@@
SRC = \
$(TELE_COMMON_SRC) \
$(TM_DRIVER_SRC) \
$(TM_TASK_SRC) \
$(TELE_COMMON_SRC) \
$(TM_DRIVER_SRC) \
$(TM_TASK_SRC) \
- $(TI_TASK_SRC)
+ $(TI_TASK_SRC) \
+ $(TT_TASK_SRC) \
+ $(TD_TASK_SRC)
TM_REL=$(TM_SRC:.c=.rel)
TI_REL=$(TI_SRC:.c=.rel)
TT_REL=$(TT_SRC:.c=.rel)
TM_REL=$(TM_SRC:.c=.rel)
TI_REL=$(TI_SRC:.c=.rel)
TT_REL=$(TT_SRC:.c=.rel)
+TD_REL=$(TD_SRC:.c=.rel)
ADB=$(SRC:.c=.adb)
ASM=$(SRC:.c=.asm)
ADB=$(SRC:.c=.adb)
ASM=$(SRC:.c=.asm)
@@
-133,7
+151,10
@@
REL=$(SRC:.c=.rel)
RST=$(SRC:.c=.rst)
SYM=$(SRC:.c=.sym)
RST=$(SRC:.c=.rst)
SYM=$(SRC:.c=.sym)
-PROGS=telemetrum.ihx tidongle.ihx teleterra.ihx
+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)
PCDB=$(PROGS:.ihx=.cdb)
PLNK=$(PROGS:.ihx=.lnk)
PMAP=$(PROGS:.ihx=.map)
@@
-143,7
+164,7
@@
PAOM=$(PROGS:.ihx=)
%.rel : %.c $(INC)
$(CC) -c $(CFLAGS) -o$*.rel $*.c
%.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)
telemetrum.ihx: $(TM_REL) Makefile
$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TM_REL)
@@
-161,6
+182,12
@@
teleterra.ihx: $(TT_REL) Makefile
teleterra.ihx: tidongle.ihx
teleterra.ihx: tidongle.ihx
+teledongle.ihx: $(TD_REL) Makefile
+ $(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(TD_REL)
+ sh check-stack ao.h teledongle.mem
+
+teledongle.ihx: teleterra.ihx
+
altitude.h: make-altitude
nickle make-altitude > altitude.h
altitude.h: make-altitude
nickle make-altitude > altitude.h
@@
-169,3
+196,6
@@
clean:
rm -f $(PROGS) $(PCDB) $(PLNK) $(PMAP) $(PMEM) $(PAOM)
install:
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