Skip to content

Commit 3433dd2

Browse files
authored
Merge branch 'master' into CFlie_improved
2 parents 0e08b45 + 0fed248 commit 3433dd2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+108614
-888
lines changed

Lua_scripts/DSM FwdPrg.lua

Lines changed: 0 additions & 768 deletions
This file was deleted.

Lua_scripts/DSM FwdPrg_05_BW.lua

Lines changed: 549 additions & 0 deletions
Large diffs are not rendered by default.

Lua_scripts/DSM FwdPrg_05_Color.lua

Lines changed: 708 additions & 0 deletions
Large diffs are not rendered by default.

Lua_scripts/DSMLIB/DSM Fwd Prog Protocol.md

Lines changed: 467 additions & 0 deletions

Lua_scripts/DSMLIB/DsmFwPrgLib.lua

Lines changed: 1859 additions & 0 deletions
Large diffs are not rendered by default.

Lua_scripts/DSMLIB/DsmFwPrgSIMLib.lua

Lines changed: 1473 additions & 0 deletions
Large diffs are not rendered by default.

Lua_scripts/DSMLIB/DsmSetupLib.lua

Lines changed: 1107 additions & 0 deletions
Large diffs are not rendered by default.

Lua_scripts/DSMLIB/img/rx_pos_1.png

2.66 KB

Lua_scripts/DSMLIB/img/rx_pos_10.png

2.74 KB

Lua_scripts/DSMLIB/img/rx_pos_11.png

2.97 KB

Lua_scripts/DSMLIB/img/rx_pos_12.png

2.72 KB

Lua_scripts/DSMLIB/img/rx_pos_13.png

2.61 KB

Lua_scripts/DSMLIB/img/rx_pos_14.png

2.75 KB

Lua_scripts/DSMLIB/img/rx_pos_15.png

2.93 KB

Lua_scripts/DSMLIB/img/rx_pos_16.png

2.71 KB

Lua_scripts/DSMLIB/img/rx_pos_17.png

2.57 KB

Lua_scripts/DSMLIB/img/rx_pos_18.png

2.56 KB

Lua_scripts/DSMLIB/img/rx_pos_19.png

2.56 KB

Lua_scripts/DSMLIB/img/rx_pos_2.png

2.48 KB

Lua_scripts/DSMLIB/img/rx_pos_20.png

2.61 KB

Lua_scripts/DSMLIB/img/rx_pos_21.png

2.67 KB

Lua_scripts/DSMLIB/img/rx_pos_22.png

2.63 KB

Lua_scripts/DSMLIB/img/rx_pos_23.png

2.68 KB

Lua_scripts/DSMLIB/img/rx_pos_24.png

2.66 KB

Lua_scripts/DSMLIB/img/rx_pos_25.png

2.63 KB

Lua_scripts/DSMLIB/img/rx_pos_3.png

2.92 KB

Lua_scripts/DSMLIB/img/rx_pos_4.png

2.48 KB

Lua_scripts/DSMLIB/img/rx_pos_5.png

2.51 KB

Lua_scripts/DSMLIB/img/rx_pos_6.png

2.49 KB

Lua_scripts/DSMLIB/img/rx_pos_7.png

2.92 KB

Lua_scripts/DSMLIB/img/rx_pos_8.png

2.49 KB

Lua_scripts/DSMLIB/img/rx_pos_9.png

2.77 KB

Lua_scripts/DSMLIB/img/tt_1rud.png

728 Bytes
1.2 KB
1.18 KB
1.23 KB
1.21 KB
1.18 KB

Lua_scripts/DSMLIB/img/tt_vtail.png

1.26 KB

Lua_scripts/DSMLIB/img/wt_1ail.png

721 Bytes
803 Bytes

Lua_scripts/DSMLIB/img/wt_2ail.png

679 Bytes
755 Bytes
817 Bytes

Lua_scripts/DSMLIB/img/wt_elevon.png

1.03 KB
679 Bytes

Lua_scripts/DSMLIB/readme.md

Lines changed: 222 additions & 0 deletions

Lua_scripts/MultiChan.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
71,1,JJRC345,SkyTmblr,1,Flip,HLess,RTH,LED,UNK1,UNK2,UNK3
118118
49,0,KF606,KF606,1,Trim
119119
49,1,KF606,MIG320,1,Trim,LED
120+
49,2,KF606,ZCZ50,1,Trim,UNK
120121
9,0,KN,WLToys,0,DRate,THold,IdleUp,Gyro,Ttrim,Atrim,Etrim
121122
9,1,KN,Feilun,0,DRate,THold,IdleUp,Gyro,Ttrim,Atrim,Etrim
122123
73,0,Kyosho,Std,0,CH5,CH6,CH7,CH8,CH9,CH10,CH11,CH12,CH13,CH14
@@ -172,6 +173,7 @@
172173
5,1,V2x2,JXD506,1,Flip,Light,Pict,Video,HLess,StaSto,Emerg,Cam_UD
173174
48,0,V761,3CH,0,Gyro,Calib,Flip,RtnAct,Rtn
174175
48,1,V761,4CH,0,Gyro,Calib,Flip,RtnAct,Rtn
176+
48,2,V761,TOPRC,0,Gyro,Calib,Flip,RtnAct,Rtn
175177
46,0,V911s,V911s,1,Calib,Rate
176178
46,1,V911s,E119,1,Calib,Rate,6G_3D
177179
22,0,WFLY,WFR0xS,0,CH5,CH6,CH7,CH8,CH9

Lua_scripts/README.md

Lines changed: 4 additions & 6 deletions

Multiprotocol/AFHDS2A_a7105.ino

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,10 +292,17 @@ uint16_t AFHDS2A_callback()
292292
case AFHDS2A_BIND2:
293293
case AFHDS2A_BIND3:
294294
AFHDS2A_build_bind_packet();
295+
data_rx=A7105_ReadReg(A7105_00_MODE); // Check if something has been received...
295296
A7105_WriteData(AFHDS2A_TXPACKET_SIZE, packet_count%2 ? 0x0d : 0x8c);
296-
if(!(A7105_ReadReg(A7105_00_MODE) & (1<<5))) // removed FECF check due to issues with fs-x6b -> & (1<<5 | 1<<6)
297-
{ // CRCF Ok
297+
if(!(A7105_ReadReg(A7105_00_MODE) & (1<<5)) && !(data_rx & 1)) // removed FECF check due to issues with fs-x6b -> & (1<<5 | 1<<6)
298+
{ // RX+CRCF Ok
298299
A7105_ReadData(AFHDS2A_RXPACKET_SIZE);
300+
#if 0
301+
debug("RX");
302+
for(uint8_t i=0; i<AFHDS2A_RXPACKET_SIZE ; i++)
303+
debug(" %02X", packet[i]);
304+
debugln("");
305+
#endif
299306
if(packet[0] == 0xbc && packet[9] == 0x01)
300307
{
301308
uint16_t addr;
@@ -330,7 +337,7 @@ uint16_t AFHDS2A_callback()
330337
if(!(A7105_ReadReg(A7105_00_MODE) & 0x01))
331338
break;
332339
A7105_SetPower();
333-
A7105_SetTxRxMode(TXRX_OFF); // Turn LNA off since we are in near range and we want to prevent swamping
340+
A7105_SetTxRxMode((packet_count & 0x40) ? TXRX_OFF : RX_EN); // Turn LNA off time to time since we are in near range and we want to prevent swamping
334341
A7105_Strobe(A7105_RX);
335342
phase &= ~AFHDS2A_WAIT_WRITE;
336343
phase++;

Multiprotocol/DSM_cyrf6936.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,10 @@ static uint8_t __attribute__((unused)) DSM_Check_RX_packet()
249249

250250
uint16_t DSM_callback()
251251
{
252+
#if defined MULTI_EU
253+
if(sub_protocol == DSM2_1F || sub_protocol == DSM2_2F)
254+
return 11000;
255+
#endif
252256
#define DSM_CH1_CH2_DELAY 4010 // Time between write of channel 1 and channel 2
253257
#ifdef STM32_BOARD
254258
#define DSM_WRITE_DELAY 1600 // Time after write to verify write complete

0 commit comments

Comments
 (0)