New protocol WK2x01

Protocol WK2x01 number 30
Sub protocols:
- WK2801 number 0, 8 channels, fixed id not supported
- WK2601 number 1, 6/7 channels, option is used see doc for details
- WK2401 number 2, 4 channels
Extended limits supported
Autobind protocol
Most receivers support WK2801 so always start trying this sub protocol
first.
This commit is contained in:
pascallanger
2017-01-03 19:19:53 +01:00
parent 1f0f9a2eae
commit fbb919d767
6 changed files with 485 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ enum PROTOCOLS
MODE_OPENLRS = 27, // =>OpenLRS hardware
MODE_AFHDS2A = 28, // =>A7105
MODE_Q2X2 = 29, // =>NRF24L01, extension of CX-10 protocol
MODE_WK2x01 = 30, // =>CYRF6936
};
enum Flysky
@@ -174,6 +175,12 @@ enum FY326
FY326 = 0,
FY319 = 1,
};
enum WK2x01
{
WK2801 = 0,
WK2601 = 1,
WK2401 = 2,
};
#define NONE 0
#define P_HIGH 1
@@ -448,6 +455,7 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
OpenLRS 27
AFHDS2A 28
Q2X2 29
WK2x01 30
BindBit=> 0x80 1=Bind/0=No
AutoBindBit=> 0x40 1=Yes /0=No
RangeCheck=> 0x20 1=Yes /0=No
@@ -535,6 +543,10 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
sub_protocol==FY326
FY326 0
FY319 1
sub_protocol==WK2x01
WK2801 0
WK2601 1
WK2401 2
Power value => 0x80 0=High/1=Low
Stream[3] = option_protocol;