Skip to content

Commit 3fe6dc6

Browse files
committed
KF606/MIG320: Added LED control
1 parent 49068af commit 3fe6dc6

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

Lua_scripts/MultiChan.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
71,0,JJRC345,JJRC345,1,Flip,HLess,RTH,LED,UNK1,UNK2,UNK3
116116
71,1,JJRC345,SkyTmblr,1,Flip,HLess,RTH,LED,UNK1,UNK2,UNK3
117117
49,0,KF606,KF606,1,Trim
118-
49,1,KF606,MIG320,1,Trim
118+
49,1,KF606,MIG320,1,Trim,LED
119119
9,0,KN,WLToys,0,DRate,THold,IdleUp,Gyro,Ttrim,Atrim,Etrim
120120
9,1,KN,Feilun,0,DRate,THold,IdleUp,Gyro,Ttrim,Atrim,Etrim
121121
73,0,Kyosho,Std,0,CH5,CH6,CH7,CH8,CH9,CH10,CH11,CH12,CH13,CH14

Multiprotocol/KF606_ccnrf.ino

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static void __attribute__((unused)) KF606_send_packet()
4646
if(sub_protocol == KF606_KF606)
4747
{
4848
packet[2] = convert_channel_8b_limit_deadband(AILERON,0x20,0x80,0xE0,40); // Aileron: Max values:20..80..E0, Low rates:50..80..AF, High rates:3E..80..C1
49-
packet[3] = convert_channel_16b_limit(CH5,0xC1,0xDF); // Aileron trim must be on a separated channel C1..D0..DF
49+
packet[3] = convert_channel_16b_limit(CH5,0xC1,0xDF); // Aileron trim must be on a separated channel C1..D0..DF
5050
}
5151
else
5252
{
@@ -57,6 +57,7 @@ static void __attribute__((unused)) KF606_send_packet()
5757
packet[3] = 0x01;
5858
else if(packet[3] > 0x1F)
5959
packet[3] = 0x1F;
60+
packet[3] |= GET_FLAG(CH6_SW, 0xC0); // 0xC0 and 0xE0 are both turning the LED off, not sure if there is another hidden feature
6061
}
6162
}
6263

Multiprotocol/Multiprotocol.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define VERSION_MAJOR 1
2020
#define VERSION_MINOR 3
2121
#define VERSION_REVISION 3
22-
#define VERSION_PATCH_LEVEL 11
22+
#define VERSION_PATCH_LEVEL 12
2323

2424
#define MODE_SERIAL 0
2525

Protocols_Details.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1025,16 +1025,20 @@ New generation of GD models
10251025

10261026
## KF606 - *49*
10271027

1028+
### Sub_protocol KF606 - *0*
1029+
Model: KF606
1030+
10281031
CH1|CH2|CH3|CH4|CH5
10291032
---|---|---|---|---
10301033
A||T||TRIM
10311034

1032-
### Sub_protocol KF606 - *0*
1033-
Model: KF606
1034-
10351035
### Sub_protocol MIG320 - *1*
10361036
Model: Zhiyang MIG-320
10371037

1038+
CH1|CH2|CH3|CH4|CH5|CH6
1039+
---|---|---|---|---|---
1040+
A||T||TRIM|LED
1041+
10381042
## MJXQ - *18*
10391043
Autobind protocol
10401044

0 commit comments

Comments
 (0)