Skip to content

Commit 99cd4d3

Browse files
committed
MT99xx Trim channels
1 parent a9be2a8 commit 99cd4d3

File tree

3 files changed

+62
-50
lines changed

3 files changed

+62
-50
lines changed

Lua_scripts/MultiChan.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,16 @@
134134
18,4,MJXQ,E010,1,Flip,LED,Pict,Video,HLess,RTH,AuFlip,Pan,Tilt,Rate
135135
18,5,MJXQ,H26WH,1,Flip,Arm,Pict,Video,HLess,RTH,AuFlip,Pan,Tilt,Rate
136136
18,6,MJXQ,Phoenix,1,Flip,Arm,Pict,Video,HLess,RTH,AuFlip,Pan,Tilt,Rate
137-
17,0,MT99XX,Std,1,Flip,LED,Pict,Video,HLess
138-
17,1,MT99XX,H7,1,Flip,LED,Pict,Video,HLess
139-
17,2,MT99XX,YZ,1,Flip,LED,Pict,Video,HLess
140-
17,3,MT99XX,LS,1,Flip,Invert,Pict,Video,HLess
141-
17,4,MT99XX,FY805,1,Flip,n-a,n-a,n-a,HLess
142-
17,5,MT99XX,A180,0,3D_6G,Rate,3D_6G
143-
17,6,MT99XX,Dragon,0,Mode,RTH
144-
17,7,MT99XX,F949G,0,6G_3D,Light,Rates,Unk1,Unk2
137+
17,0,MT99XX,Std,1,Flip,LED,Pict,Video,HLess,Atrim,Etrim
138+
17,1,MT99XX,H7,1,Flip,LED,Pict,Video,HLess,Atrim,Etrim
139+
17,2,MT99XX,YZ,1,Flip,LED,Pict,Video,HLess,Atrim,Etrim
140+
17,3,MT99XX,LS,1,Flip,Invert,Pict,Video,HLess,Atrim,Etrim
141+
17,4,MT99XX,FY805,1,Flip,n-a,n-a,n-a,HLess,Atrim,Etrim
142+
17,5,MT99XX,A180,0,3D_6G,Rate,3D_6G,n-a,n-a,Atrim,Etrim
143+
17,6,MT99XX,Dragon,0,Mode,RTH,n-a,n-a,n-a,Atrim,Etrim
144+
17,7,MT99XX,F949G,0,6G_3D,Light,Rates,Unk1,Unk2,Atrim,Etrim
145+
92,0,MT99xx2,PA18,0,MODE,FLIP,RTH,n-a,n-a,Atrim,Etrim
146+
92,1,MT99xx2,SU35,0,Mode,LED,LED_FH,Invert,Rate,Atrim,Etrim
145147
44,0,NCC1701,Std,1,Warp
146148
77,0,OMP,M2,0,THold,IdleUp,6G_3D
147149
60,0,Pelikan,PRO_V4,0,CH5,CH6,CH7,CH8
@@ -217,8 +219,6 @@
217219
90,0,MouldKg,Analog,0
218220
90,1,MouldKg,Digit,0
219221
91,0,Xerall,Tank,0,FlTa,TakLan,Rate,HLess,Photo,Video,TrimR,TrimE,TrimA
220-
92,0,MT99xx2,PA18,0,MODE,FLIP,RTH
221-
92,1,MT99xx2,SU35,0,Mode,LED,LED_FH,Invert,Rate
222222
93,0,Kyosho2,KT-17,0
223223
94,0,Scorpio
224224
95,0,Bluefly,HP100,0,CH5,CH6,CH7,CH8

Multiprotocol/MT99xx_ccnrf.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,8 @@ static void __attribute__((unused)) MT99XX_send_packet()
189189
packet[1] = convert_channel_16b_limit(RUDDER ,0x00,0xE1); // rudder
190190
packet[2] = convert_channel_16b_limit(AILERON ,0xE1,0x00); // aileron
191191
packet[3] = convert_channel_16b_limit(ELEVATOR,0x00,0xE1); // elevator
192-
packet[4] = 0x20; // pitch trim (0x3f-0x20-0x00)
193-
packet[5] = 0x20; // roll trim (0x00-0x20-0x3f)
192+
packet[4] = (convert_channel_8b(CH10) ^ 0xFF) >> 2; // aileron trim (3F..20..00)
193+
packet[5] = convert_channel_8b(CH11) >> 2; // elevator trim (00..20..3F)
194194
packet[6] = GET_FLAG( CH5_SW, FLAG_MT_FLIP );
195195
if(sub_protocol != PA18+8)
196196
packet[7] = h7_mys_byte[hopping_frequency_no]; // next rf channel index ?
@@ -337,7 +337,7 @@ static void __attribute__((unused)) MT99XX_send_packet()
337337
XN297_SetTxRxMode(TX_EN);
338338
XN297_WritePayload(packet, MT99XX_PACKET_SIZE);
339339

340-
#if 0
340+
#if 1
341341
for(uint8_t i=0; i<MT99XX_PACKET_SIZE; i++)
342342
debug(" %02X",packet[i]);
343343
debugln();

Protocols_Details.md

Lines changed: 49 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,16 +1185,22 @@ If only a NRF24L01 is installed then this sub protocol might be problematic beca
11851185
## MT99XX - *17*
11861186
Autobind protocol
11871187

1188-
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9
1189-
---|---|---|---|---|---|---|---|---
1190-
A|E|T|R|FLIP|LED|PICTURE|VIDEO|HEADLESS
1191-
1192-
CC2500: only YZ is supported.
1188+
CC2500: only YZ and F949G are supported.
11931189

11941190
### Sub_protocol MT99 - *0*
11951191
Models: MT99xx
1192+
1193+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1194+
---|---|---|---|---|---|---|---|---|---|---
1195+
A|E|T|R|FLIP|LED|PICTURE|VIDEO|HEADLESS|ATrim|ETrim
1196+
11961197
### Sub_protocol H7 - *1*
11971198
Models: Eachine H7, Cheerson CX023
1199+
1200+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1201+
---|---|---|---|---|---|---|---|---|---|---
1202+
A|E|T|R|FLIP|LED|PICTURE|VIDEO|HEADLESS|ATrim|ETrim
1203+
11981204
### Sub_protocol YZ - *2*
11991205
Model: Yi Zhan i6S
12001206

@@ -1204,63 +1210,71 @@ If a CC2500 is installed it will be used for this sub protocol. Option in this c
12041210

12051211
If only a NRF24L01 is installed then this sub protocol might be problematic because it is using the xn297L emulation with a transmission speed of 250kbps which doesn't work very well with every NRF24L01, this is an hardware issue with the authenticity and accuracy of the components.
12061212

1213+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1214+
---|---|---|---|---|---|---|---|---|---|---
1215+
A|E|T|R|FLIP|LED|PICTURE|VIDEO|HEADLESS|ATrim|ETrim
1216+
12071217
### Sub_protocol LS - *3*
12081218
Models: LS114, 124, 215
12091219

1210-
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9
1211-
---|---|---|---|---|---|---|---|---
1212-
A|E|T|R|FLIP|INVERT|PICTURE|VIDEO|HEADLESS
1220+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1221+
---|---|---|---|---|---|---|---|---|---|---
1222+
A|E|T|R|FLIP|INVERT|PICTURE|VIDEO|HEADLESS|ATrim|ETrim
12131223

12141224
### Sub_protocol FY805 - *4*
12151225
Model: FY805
12161226

12171227
**Only 1 ID available**
12181228

1219-
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9
1220-
---|---|---|---|---|---|---|---|---
1221-
A|E|T|R|FLIP||||HEADLESS
1229+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1230+
---|---|---|---|---|---|---|---|---|---|---
1231+
A|E|T|R|FLIP||||HEADLESS|ATrim|ETrim
12221232

12231233
### Sub_protocol A180 - *5*
12241234
Model: XK A180, A120, F949S, F959
12251235

12261236
A180:
1227-
CH1|CH2|CH3|CH4|CH5|CH6
1228-
---|---|---|---|---|---
1229-
A|E|T|R|3D6G|RATE
1237+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1238+
---|---|---|---|---|---|---|---|---|---|---
1239+
A|E|T|R|3D6G|RATE||||ATrim|ETrim
12301240

12311241
A120:
1232-
CH1|CH2|CH3|CH4|CH5|CH6
1233-
---|---|---|---|---|---
1234-
A|E|T|R|RATE|LED
1242+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1243+
---|---|---|---|---|---|---|---|---|---|---
1244+
A|E|T|R|RATE|LED||||ATrim|ETrim
12351245

12361246
F949S:
1237-
CH1|CH2|CH3|CH4|CH5|CH6|CH7
1238-
---|---|---|---|---|---|---
1239-
A|E|T|R|RATE|RXLED|3D6G
1247+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1248+
---|---|---|---|---|---|---|---|---|---|---
1249+
A|E|T|R|RATE|RXLED|3D6G|||ATrim|ETrim
12401250

12411251
### Sub_protocol DRAGON - *6*
12421252
Model: Eachine Mini Wing Dragon, Eachine Mini Cessna
12431253

12441254
Telemetry is supported: A1 = battery voltage with a Ratio of 25.5, A2=battery low flag (0=off,>0=on) and RSSI = dummy value of 100
12451255

1246-
CH1|CH2|CH3|CH4|CH5|CH6
1247-
---|---|---|---|---|---
1248-
A|E|T|R|MODE|RTH
1256+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1257+
---|---|---|---|---|---|---|---|---|---|---
1258+
A|E|T|R|MODE|RTH||||ATrim|ETrim
12491259

12501260
MODE: -100%=Beginner, 0%=Intermediate, +100%=Advanced
12511261

12521262
### Sub_protocol F949G - *7*
1263+
If a CC2500 is installed it will be used for this sub protocol. Option in this case is used for fine frequency tuning like any CC2500 protocols so check the [Frequency Tuning page](/docs/Frequency_Tuning.md).
1264+
1265+
If only a NRF24L01 is installed then this sub protocol might be problematic because it is using the xn297L emulation with a transmission speed of 250kbps which doesn't work very well with every NRF24L01, this is an hardware issue with the authenticity and accuracy of the components.
1266+
12531267
Model: F949G
12541268

1255-
CH1|CH2|CH3|CH4|CH5|CH6
1256-
---|---|---|---|---|---
1257-
A|E|T|R|6G3D|Light
1269+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1270+
---|---|---|---|---|---|---|---|---|---|---
1271+
A|E|T|R|6G3D|Light||||ATrim|ETrim
12581272

12591273
Model: KFPLAN Z-Series like Z61 BF109, Z54 A380,...
12601274

1261-
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9
1262-
---|---|---|---|---|---|---|---|---
1263-
A|E|T|R|-|Rate|Light|Unk1|Unk2
1275+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1276+
---|---|---|---|---|---|---|---|---|---|---
1277+
A|E|T|R||Rate|Light|Unk1|Unk2|ATrim|ETrim
12641278

12651279
Unk1&2: long press right/left
12661280

@@ -1269,20 +1283,18 @@ Unk1&2: long press right/left
12691283
### Sub_protocol PA18 - *0*
12701284
Model: PA18 mini
12711285

1272-
CH1|CH2|CH3|CH4|CH5|CH6|CH7
1273-
---|---|---|---|---|---|---
1274-
A|E|T|R|MODE|FLIP|RTH
1286+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1287+
---|---|---|---|---|---|---|---|---|---|---
1288+
A|E|T|R|MODE|FLIP|RTH|||ATrim|ETrim
12751289

12761290
MODE: -100% beginner, 0% intermediate, +100% Expert
12771291

12781292
### Sub_protocol SU35 - *1*
12791293
Model: QF009 SU35
12801294

1281-
CH6 - LED, CH7 - LED Flash, CH8 - Invert, CH9 - Rate
1282-
1283-
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9
1284-
---|---|---|---|---|---|---|---|---
1285-
A|E|T|R|MODE|LED|LED_FLASH|INVERT|RATE
1295+
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
1296+
---|---|---|---|---|---|---|---|---|---|---
1297+
A|E|T|R|MODE|LED|LED_FLASH|INVERT|RATE|ATrim|ETrim
12861298

12871299
MODE: -100% 6G, +100% 3D
12881300

0 commit comments

Comments
 (0)