mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-12-21 16:53:15 +00:00
CG023 & H8_3D protocols
- Removed sub_protcol H8_3D under protocol CG023 - Added protocol H8_3D (36) - Added sub_protocols H8_3D/H8_3D (0) - Added sub_protocols H8_3D/H20H (1) - Added sub_protocols H8_3D/H20Mini (2) - Added sub_protocols H8_3D/H30Mini (3)
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#define VERSION_MAJOR 1
|
||||
#define VERSION_MINOR 1
|
||||
#define VERSION_REVISION 6
|
||||
#define VERSION_PATCH_LEVEL 33
|
||||
#define VERSION_PATCH_LEVEL 34
|
||||
//******************
|
||||
// Protocols
|
||||
//******************
|
||||
@@ -61,6 +61,7 @@ enum PROTOCOLS
|
||||
MODE_DM002 = 33, // =>NRF24L01
|
||||
MODE_CABELL = 34, // =>NRF24L01
|
||||
MODE_ESKY150 = 35, // =>NRF24L01
|
||||
MODE_H8_3D = 36, // =>NRF24L01
|
||||
};
|
||||
|
||||
enum Flysky
|
||||
@@ -133,7 +134,6 @@ enum CG023
|
||||
{
|
||||
CG023 = 0,
|
||||
YD829 = 1,
|
||||
H8_3D = 2
|
||||
};
|
||||
enum BAYANG
|
||||
{
|
||||
@@ -206,6 +206,13 @@ enum CABELL
|
||||
CABELL_SET_FAIL_SAFE= 6,
|
||||
CABELL_UNBIND = 7,
|
||||
};
|
||||
enum H8_3D
|
||||
{
|
||||
H8_3D = 0,
|
||||
H20H = 1,
|
||||
H20MINI = 2,
|
||||
H30MINI = 3,
|
||||
};
|
||||
|
||||
#define NONE 0
|
||||
#define P_HIGH 1
|
||||
@@ -535,6 +542,7 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
||||
DM002 33
|
||||
CABELL 34
|
||||
ESKY150 35
|
||||
H8_3D 36
|
||||
BindBit=> 0x80 1=Bind/0=No
|
||||
AutoBindBit=> 0x40 1=Yes /0=No
|
||||
RangeCheck=> 0x20 1=Yes /0=No
|
||||
@@ -586,7 +594,6 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
||||
sub_protocol==CG023
|
||||
CG023 0
|
||||
YD829 1
|
||||
H8_3D 2
|
||||
sub_protocol==BAYANG
|
||||
BAYANG 0
|
||||
H8S3D 1
|
||||
@@ -643,6 +650,11 @@ Serial: 100000 Baud 8e2 _ xxxx xxxx p --
|
||||
CABELL_V3_TELEMETRY 1
|
||||
CABELL_SET_FAIL_SAFE 6
|
||||
CABELL_UNBIND 7
|
||||
sub_protocol==H8_3D
|
||||
H8_3D 0
|
||||
H20H 1
|
||||
H20MINI 2
|
||||
H30MINI 3
|
||||
|
||||
Power value => 0x80 0=High/1=Low
|
||||
Stream[3] = option_protocol;
|
||||
|
||||
Reference in New Issue
Block a user