altos: Switch telemetrum over to kalman filter
[fw/altos] / src / test / Makefile
index cd9cafc8bddc27a6abac2cb0da36c4d03a86ae24..433f749b05c6f27a954821b24a9468e316056e52 100644 (file)
@@ -1,6 +1,7 @@
 vpath % ..
+vpath % ../kalman
 
-PROGS=ao_flight_test ao_gps_test ao_gps_test_skytraq ao_convert_test
+PROGS=ao_flight_test ao_flight_test_baro ao_flight_test_accel ao_gps_test ao_gps_test_skytraq ao_convert_test
 
 CFLAGS=-I.. -I.
 
@@ -11,9 +12,15 @@ clean:
 
 install:
 
-ao_flight_test: ao_flight_test.c ao_flight_test.c ao_host.h ao_flight.c altitude.h
+ao_flight_test: ao_flight_test.c ao_host.h ao_flight.c altitude.h ao_kalman.h
        cc -g -o $@ $<
 
+ao_flight_test_baro: ao_flight_test.c ao_host.h ao_flight.c altitude.h ao_kalman.h
+       cc -g -o $@ -DHAS_ACCEL=0 ../ao_flight_test.c
+
+ao_flight_test_accel: ao_flight_test.c ao_host.h ao_flight.c altitude.h ao_kalman.h
+       cc -g -o $@ -DFORCE_ACCEL=1 ../ao_flight_test.c
+
 ao_gps_test: ao_gps_test.c ao_gps_sirf.c ao_gps_print.c ao_host.h
        cc -g -o $@ $<
 
@@ -22,3 +29,6 @@ ao_gps_test_skytraq: ao_gps_test_skytraq.c ao_gps_skytraq.c ao_gps_print.c ao_ho
 
 ao_convert_test: ao_convert_test.c ao_convert.c altitude.h
        cc -g -o $@ $<
+
+../ao_kalman.h: make-kalman kalman.5c kalman_filter.5c load_csv.5c matrix.5c
+       sh $< > $@