Traxxas TQ 1st gen: try 5
[DIY-Multiprotocol-TX-Module.git] / Multiprotocol / _MyConfig.h.example
blobbc0b07ac364261792a132ac1a938ce59d4febb99
1 /*
2    This file is meant to keep your settings after an upgrade of the multi source.
3    If you know parameters you want for sure to be enabled or disabled in future
4    then just force their values here.
5    To enable  a setting use #define <setting name>
6    To disable a setting use #undef  <setting name>
7 */
9 // For example you can also define multiple module configurations, uncomment the one you want to compile for:
10 #define Module_1
11 //#define Module_2
12 //#define Module_3
14 //Example on how to force the "Flash from TX" feature for all modules
15 #define CHECK_FOR_BOOTLOADER
17 //Example on how to force the same ID for all modules: be carefull this is really if you want to be able to use one or another radio but not both!
18 //#define FORCE_GLOBAL_ID       0x12345678
20 #if defined Module_1
21         //Example on how to remove unwanted protocols to fit in flash for Atmega 328 modules
22         #undef  AFHDS2A_A7105_INO
24         #undef  DEVO_CYRF6936_INO
25         #undef  J6PRO_CYRF6936_INO
26         #undef  WK2x01_CYRF6936_INO
28         #undef  FRSKYV_CC2500_INO
29         #undef  FRSKYX_CC2500_INO
31         #undef  KN_NRF24L01_INO
32         #undef  SLT_CCNRF_INO
34         #undef  FY326_NRF24L01_INO
35         #undef  FQ777_NRF24L01_INO
36         #undef  ASSAN_NRF24L01_INO
37         #undef  HONTAI_NRF24L01_INO
38         #undef  Q303_CCNRF_INO
39         #undef  GW008_NRF24L01_INO
40         #undef  DM002_NRF24L01_INO
41         #undef  CABELL_NRF24L01_INO
42         #undef  ESKY150_NRF24L01_INO
43         #undef  H8_3D_NRF24L01_INO
45 #elif defined Module_2
46         //Example of a module which doesn't need the telemetry signal to be inverted
47         #undef INVERT_TELEMETRY
48         
49 #elif defined Module_3
50         //Example of a module which will be PPM only with a different protocol table
51         #undef ENABLE_SERIAL
52         #undef NBR_BANKS
53         #define NBR_BANKS 1             // redefine the number of banks
54         #define MY_PPM_PROT             // Use the bellow protocol list
55         const PPM_Parameters My_PPM_prot[14*NBR_BANKS]={
56 //******************************       BANK 1       ******************************
57 //      Switch  Protocol                Sub protocol    RX_Num  Power           Auto Bind               Option  Chan Order
58 /*      1       */      {PROTO_KN       ,       WLTOYS          ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },
59 /*      2       */      {PROTO_FLYSKY,  Flysky          ,       0       ,       P_HIGH  ,       AUTOBIND        ,       0       ,       0x00000000 },
60 /*      3       */      {PROTO_AFHDS2A, PWM_IBUS        ,       1       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },   // RX number 1
61 /*      4       */      {PROTO_AFHDS2A, PWM_IBUS        ,       2       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },   // RX number 2
62 /*      5       */      {PROTO_AFHDS2A, PWM_IBUS        ,       3       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },   // RX number 3
63 /*      6       */      {PROTO_AFHDS2A, PWM_IBUS        ,       2       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },   // RX number 4
64 /*      7       */      {PROTO_AFHDS2A, PWM_IBUS        ,       3       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },   // RX number 5
65 /*      8       */      {PROTO_HUBSAN,  H107            ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },
66 /*      9       */      {PROTO_FRSKYV,  NONE            ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       40      ,       0x00000000 },   // option=fine freq tuning
67 /*      10      */      {PROTO_FRSKYD,  NONE            ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       40      ,       0x00000000 },   // option=fine freq tuning
68 /*      11      */      {PROTO_FRSKYX,  CH_16           ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       40      ,       0x00000000 },   // option=fine freq tuning
69 /*      12      */      {PROTO_FRSKYX,  EU_16           ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       40      ,       0x00000000 },   // option=fine freq tuning
70 /*      13      */      {PROTO_DEVO     ,       NONE            ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },
71 /*      14      */      {PROTO_WK2x01,  WK2801          ,       0       ,       P_HIGH  ,       NO_AUTOBIND     ,       0       ,       0x00000000 },
72         };
73 #endif