diff --git a/conf/autopilot/subsystems/lisa_passthrough/radio_control_joby.makefile b/conf/autopilot/subsystems/lisa_passthrough/radio_control_joby.makefile new file mode 100644 index 0000000000..80c3cba91c --- /dev/null +++ b/conf/autopilot/subsystems/lisa_passthrough/radio_control_joby.makefile @@ -0,0 +1,13 @@ + + +# Radio control +pt.CFLAGS += -DUSE_RADIO_CONTROL +pt.CFLAGS += -DRADIO_CONTROL_TYPE_H=\"radio_control/booz_radio_control_joby.h\" +pt.CFLAGS += -DRADIO_CONTROL_JOBY_MODEL_H=\"radio_control/booz_radio_control_joby_9ch.h\" +pt.srcs += $(SRC_BOOZ)/booz_radio_control.c \ + $(SRC_BOOZ)/radio_control/booz_radio_control_joby.c +pt.CFLAGS += -DRADIO_CONTROL_LED=6 +pt.CFLAGS += -DUSE_UART3 -DUART3_BAUD=B115200 +pt.CFLAGS += -DRADIO_CONTROL_LINK=Uart3 + + diff --git a/conf/autopilot/subsystems/lisa_passthrough/radio_control_spektrum.makefile b/conf/autopilot/subsystems/lisa_passthrough/radio_control_spektrum.makefile new file mode 100644 index 0000000000..5b246969dc --- /dev/null +++ b/conf/autopilot/subsystems/lisa_passthrough/radio_control_spektrum.makefile @@ -0,0 +1,17 @@ + +# Radio control + +ifndef RADIO_CONTROL_SPEKTRUM_MODEL +RADIO_CONTROL_SPEKTRUM_MODEL=\"booz/radio_control/booz_radio_control_spektrum_dx7se.h\" +endif + +pt.CFLAGS += -DUSE_RADIO_CONTROL +pt.CFLAGS += -DRADIO_CONTROL_TYPE_H=\"booz/radio_control/booz_radio_control_spektrum.h\" +pt.CFLAGS += -DRADIO_CONTROL_SPEKTRUM_MODEL_H=$(RADIO_CONTROL_SPEKTRUM_MODEL) +pt.srcs += $(SRC_BOOZ)/booz_radio_control.c \ + $(SRC_BOOZ)/radio_control/booz_radio_control_spektrum.c +pt.CFLAGS += -DRADIO_CONTROL_LED=4 +pt.CFLAGS += -DUSE_UART3 -DUART3_BAUD=B115200 +pt.CFLAGS += -DRADIO_CONTROL_LINK=Uart3 + +