From b43e4175a961114e3473faab0a4ac80b7ba9595f Mon Sep 17 00:00:00 2001 From: Felix Ruess Date: Tue, 9 Sep 2014 22:20:14 +0200 Subject: [PATCH] [stm32][spektrum] make it possible to redifine channels from airframe file --- .../stm32/subsystems/radio_control/spektrum_arch.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sw/airborne/arch/stm32/subsystems/radio_control/spektrum_arch.h b/sw/airborne/arch/stm32/subsystems/radio_control/spektrum_arch.h index d96250e7d72..bf6a3705805 100644 --- a/sw/airborne/arch/stm32/subsystems/radio_control/spektrum_arch.h +++ b/sw/airborne/arch/stm32/subsystems/radio_control/spektrum_arch.h @@ -34,11 +34,19 @@ #define RADIO_CONTROL_NB_CHANNEL 12 #endif - +/* default channel assignments */ +#ifndef RADIO_THROTTLE #define RADIO_THROTTLE 0 +#endif +#ifndef RADIO_ROLL #define RADIO_ROLL 1 +#endif +#ifndef RADIO_PITCH #define RADIO_PITCH 2 +#endif +#ifndef RADIO_YAW #define RADIO_YAW 3 +#endif #define RADIO_GEAR 4 #define RADIO_FLAP 5 #define RADIO_AUX1 5