Traxxas TQ 1st gen: try 4
[DIY-Multiprotocol-TX-Module.git] / docs / Channel_Order.md
blob1b078d6bfce15ad71823c31c4219557282627566
1 # Channel Order
3 Channel ordering is extremely important to the Multiprotocol Module.  It is vital that the module receives channel data from the radio in the order which it expects so that it can reorder the data sent over the air into the order which the receiver requires/expects.
5 ## Background
6 The Multiprotocol Module supports dozens of different protocols, many of which require channel data to be sent in a specific order (especially ones for models with integrated receiver/flight controllers).
8 The Multiprotocol Module was designed to:
9 * Enable users to control many different models or receivers using a single transmitter system
10 * Work with radios where the input channels could not be reassigned
11 * Make it simple to configure models without having to think about the channel order they require
13 To address these considerations the Multiprotocol Module will internally reorder the radio's output channels to the order required by the selected protocol before transmitting the data to the receiver.
15 The Multiprotocol Module also has functionality which depends on knowing which input channel is the throttle:
16 * 'Bind on Channel' requires the throttle to be at -100% before the bind can be initiated (so that bind cannot be initiated while flying)
17 * 'Throttle Kill' needs to know which channel to apply the throttle reduction to
19 **So, the Multiprotocol Module must know what order the channel data from the radio is in.  However, because the radio does not tell the module which input is assigned to each channel, the order is fixed in the Multiprotocol Module's firmware.  This is the _expected channel order_.**
21 ## Expected Channel Order
22 The expected channel order is the order in which the Multiprotocol Module expects to receive channel data from the radio.  It associates the four primary radio inputs (aileron, elevator,throttle, and rudder) to the four output channels CH1, CH2, CH3, and CH4.  In AETR, **A**ileron is on CH1, **E**levator is on CH2, **T**hrottle is on CH3, and **R**udder is on CH4.
24 **The default expected channel order is AETR.**
26 The Multiprotocol Module uses the expected channel order to reorder channels into the order required by the selected protocol, and to apply channel-specific features such as 'Throttle Kill'.
28 If you are using firmware which has an expected channel order of AETR (the default), and you are using a protocol which has a fixed channel order†, you must create your radio models with a channel order of AETR, regardless of the channel order the receiver requires.  **The Multiprotocol Module will do the conversion from AETR to the required order for you.**
30 For example, Spektrum / DSM receivers expect **TAER**.  When you configure the model in the radio you set it up in **AETR** order, the Multiprotocol Module reorders the channels before transmission, the receiver receives **TAER**, everything works as expected:
32 Radio CH | Radio Input/Output | Module Reordering | Receiver Receives |
33 | --- | --- | --- | --- | 
34 | 1 | Ail | 3 -> 1 | Thr |
35 | 2 | Ele | 1 -> 2 | Ail |
36 | 3 | Thr | 2 -> 3 | Ele |
37 | 4 | Rud | 4 -> 4 | Rud |
39 If the radio channel order is not in the expected order (AETR) the channel reordering will be broken.
41 For example, if the radio is configured with TAER, but the Multiprotocol module expects AETR, this will happen:
43 Radio CH | Radio Input/Output | Module Reordering | Receiver Receives |
44 | --- | --- | --- | --- | 
45 | 1 | Thr | 3 -> 1 | Ele |
46 | 2 | Ail | 1 -> 2 | Thr |
47 | 3 | Ele | 2 -> 3 | Ail |
48 | 4 | Rud | 4 -> 4 | Rud |
50 With potentially dangerous or disasterous consequences.
52 At best, you won't be able to arm your model because the throttle value is too high (because the receiver sees the elevator output, which is at 50%, where it expects throttle to be).  At worst the throttle will go to 50% as soon as the model binds with the radio.
54 **†** Not all protocols have a fixed channel order, see [Protocols Without a Fixed Channel Order](#protocols-without-a-fixed-channel-order).
56 ## Setting the Expected Channel Order
57 You can change the expected channel order by compiling or downloading firmware with a different channel order and flashing it to your Multiprotocol Module.
59 1. If you compile your own firmware, modify the channel order line in the `_Config.h` file to match your preference
60 2. If you flash the pre-compiled firmware from the Releases page, download the order-specific firmware image which matches your preference
62 **After updating the Multiprotocol Module you must still ensure your radio setup matches the module's expected order.**
64 ## Changing the Channel Order on the radio
65 **Your radio is not aware of the channel order expected by the Multiprotocol Module, and the module is not aware of the default channel order on your radio.**
67 Once you have settled on a preferred channel order, and flashed your Multiprotocol Module with firmware which expects that order, you should:
69 1. Change the Default Channel Order setting on your radio to match the Multiprotocol Module
70 1. Ensure that any models which you control with the Multiprotocol Module are configured with the channel order which the Module expects
72 **Changing the Default Channel Order only affects new models - you must manually edit existing models.**
74 ## Protocols Without a Fixed Channel Order
75 The Multiprotocol Module also supports protocols which _do not_ have a specific channel order.  For these protocols the channel order _is not_ changed and will be transmitted as received from the radio.
77 Examples of protocols which are not reordered: Corona, FrSkyD, FrSkyX, FrSkyV, Hitec, and WFly.
79 The full list of supported protocols, including the output channel order for each of them, is available [here](../Protocols_Details.md).
81 Where the channel table looks like this, with an input assigned to each channel, the output **is** being reordered:
83 CH1|CH2|CH3|CH4
84 ---|---|---|---
85 A|E|T|R
87 Where the channel table looks like this, the output **is not** being reordered:
89 CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8
90 ---|---|---|---|---|---|---|---
91 CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8