Bayang: new subprotocol CX100

This commit is contained in:
Pascal Langer 2020-06-02 14:59:32 +02:00
parent 0d97af5ae2
commit 50f1eca4be
6 changed files with 13 additions and 3 deletions

View File

@ -67,12 +67,16 @@ static void __attribute__((unused)) BAYANG_send_packet()
else else
#endif #endif
packet[0]= 0xA4; packet[0]= 0xA4;
if(sub_protocol==CX100)
packet[0] = 0x53;
for(i=0;i<5;i++) for(i=0;i<5;i++)
packet[i+1]=rx_tx_addr[i]; packet[i+1]=rx_tx_addr[i];
for(i=0;i<4;i++) for(i=0;i<4;i++)
packet[i+6]=hopping_frequency[i]; packet[i+6]=hopping_frequency[i];
switch (sub_protocol) switch (sub_protocol)
{ {
case CX100:
case X16_AH: case X16_AH:
packet[10] = 0x00; packet[10] = 0x00;
packet[11] = 0x00; packet[11] = 0x00;
@ -161,6 +165,7 @@ static void __attribute__((unused)) BAYANG_send_packet()
packet[12] = rx_tx_addr[2]; // txid[2] packet[12] = rx_tx_addr[2]; // txid[2]
packet[13] = 0x34; packet[13] = 0x34;
break; break;
case CX100:
case X16_AH: case X16_AH:
packet[12] = 0; packet[12] = 0;
packet[13] = 0; packet[13] = 0;

View File

@ -11,7 +11,7 @@
11,SLT,SLT_V1,SLT_V2,Q100,Q200,MR100 11,SLT,SLT_V1,SLT_V2,Q100,Q200,MR100
12,CX10,GREEN,BLUE,DM007,---,J3015_1,J3015_2,MK33041 12,CX10,GREEN,BLUE,DM007,---,J3015_1,J3015_2,MK33041
13,CG023,CG023,YD829 13,CG023,CG023,YD829
14,Bayang,Bayang,H8S3D,X16_AH,IRDRONE,DHD_D4 14,Bayang,Bayang,H8S3D,X16_AH,IRDRONE,DHD_D4,CX100
15,FrskyX,CH_16,CH_8,EU_16,EU_8,Cloned 15,FrskyX,CH_16,CH_8,EU_16,EU_8,Cloned
16,ESky,Std,ET4 16,ESky,Std,ET4
17,MT99xx,MT,H7,YZ,LS,FY805 17,MT99xx,MT,H7,YZ,LS,FY805

View File

@ -101,7 +101,7 @@ const char STR_SUBTYPE_SYMAX[] = "\x03""Std""X5C";
const char STR_SUBTYPE_SLT[] = "\x06""V1_6ch""V2_8ch""Q100\0 ""Q200\0 ""MR100\0"; const char STR_SUBTYPE_SLT[] = "\x06""V1_6ch""V2_8ch""Q100\0 ""Q200\0 ""MR100\0";
const char STR_SUBTYPE_CX10[] = "\x07""Green\0 ""Blue\0 ""DM007\0 ""-\0 ""JC3015a""JC3015b""MK33041"; const char STR_SUBTYPE_CX10[] = "\x07""Green\0 ""Blue\0 ""DM007\0 ""-\0 ""JC3015a""JC3015b""MK33041";
const char STR_SUBTYPE_CG023[] = "\x05""Std\0 ""YD829"; const char STR_SUBTYPE_CG023[] = "\x05""Std\0 ""YD829";
const char STR_SUBTYPE_BAYANG[] = "\x07""Std\0 ""H8S3D\0 ""X16 AH\0""IRDrone""DHD D4"; const char STR_SUBTYPE_BAYANG[] = "\x07""Std\0 ""H8S3D\0 ""X16 AH\0""IRDrone""DHD D4\0""CX100\0 ";
const char STR_SUBTYPE_MT99[] = "\x06""MT99\0 ""H7\0 ""YZ\0 ""LS\0 ""FY805"; const char STR_SUBTYPE_MT99[] = "\x06""MT99\0 ""H7\0 ""YZ\0 ""LS\0 ""FY805";
const char STR_SUBTYPE_MJXQ[] = "\x07""WLH08\0 ""X600\0 ""X800\0 ""H26D\0 ""E010\0 ""H26WH\0 ""Phoenix"; const char STR_SUBTYPE_MJXQ[] = "\x07""WLH08\0 ""X600\0 ""X800\0 ""H26D\0 ""E010\0 ""H26WH\0 ""Phoenix";
const char STR_SUBTYPE_FY326[] = "\x05""Std\0 ""FY319"; const char STR_SUBTYPE_FY326[] = "\x05""Std\0 ""FY319";

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 3 #define VERSION_MINOR 3
#define VERSION_REVISION 1 #define VERSION_REVISION 1
#define VERSION_PATCH_LEVEL 6 #define VERSION_PATCH_LEVEL 7
//****************** //******************
// Protocols // Protocols
@ -195,6 +195,7 @@ enum BAYANG
X16_AH = 2, X16_AH = 2,
IRDRONE = 3, IRDRONE = 3,
DHD_D4 = 4, DHD_D4 = 4,
CX100 = 5,
}; };
enum MT99XX enum MT99XX
{ {

View File

@ -510,6 +510,7 @@ const PPM_Parameters PPM_prot[14*NBR_BANKS]= {
X16_AH X16_AH
IRDRONE IRDRONE
DHD_D4 DHD_D4
CX100
PROTO_BAYANG_RX PROTO_BAYANG_RX
NONE NONE
PROTO_BUGS PROTO_BUGS

View File

@ -778,6 +778,9 @@ CH12|CH13
----|---- ----|----
TAKE_OFF|EMG_STOP TAKE_OFF|EMG_STOP
### Sub_protocol CX100 - *5*
Model: REVELL CX100
## BAYANG RX - *59* ## BAYANG RX - *59*
The Bayang receiver protocol enables master/slave trainning, separate access from 2 different radios to the same model,... The Bayang receiver protocol enables master/slave trainning, separate access from 2 different radios to the same model,...