Skip to content

Commit

Permalink
[stm32][spektrum] make it possible to redifine channels from airframe…
Browse files Browse the repository at this point in the history
… file
  • Loading branch information
flixr committed Sep 9, 2014
1 parent 41fe3ea commit b43e417
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion sw/airborne/arch/stm32/subsystems/radio_control/spektrum_arch.h
Expand Up @@ -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
Expand Down

2 comments on commit b43e417

@lamestllama
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It really would not be possible for any spektrum transmitter to transmit channels with any other numbering than that defined in paparazzi. If it where it would mean they had produced a transmitter incompatible with all their own recievers. I beleive the request for this feature is because the requester has their transmitter in heli mode which mixes swash plate functions and connects the pitch channel to the throttle stick. Simply resetting the transmitter to aircraft mode and removing any other mixes (i.e. aileron, evelvon) will give the result desired.

@flixr
Copy link
Member Author

@flixr flixr commented on b43e417 Sep 11, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the info! I guess I was a bit too quick to push that to v5.2 as well...
But it doesn't really hurt, so we'll just wait for the feedback of the guy who had the problems.

Please sign in to comment.