mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-07-12 17:57:53 +00:00
Add to RX protocols list
This commit is contained in:
parent
b2cf0e3254
commit
9f25ba199e
@ -231,7 +231,7 @@ uint8_t packet_in[TELEMETRY_BUFFER_SIZE];//telemetry receiving packets
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//RX protocols
|
//RX protocols
|
||||||
#if defined(AFHDS2A_RX_A7105_INO) || defined(FRSKY_RX_CC2500_INO) || defined(BAYANG_RX_NRF24L01_INO) || defined(DSM_RX_CYRF6936_INO)
|
#if defined(AFHDS2A_RX_A7105_INO) || defined(FRSKY_RX_CC2500_INO) || defined(BAYANG_RX_NRF24L01_INO) || defined(DSM_RX_CYRF6936_INO) || defined(V2X2_RX_NRF24L01_INO)
|
||||||
bool rx_data_started;
|
bool rx_data_started;
|
||||||
bool rx_data_received;
|
bool rx_data_received;
|
||||||
bool rx_disable_lna;
|
bool rx_disable_lna;
|
||||||
|
@ -15,6 +15,25 @@
|
|||||||
|
|
||||||
#if defined(V2X2_NRF24L01_INO) || defined(V2X2_RX_NRF24L01_INO)
|
#if defined(V2X2_NRF24L01_INO) || defined(V2X2_RX_NRF24L01_INO)
|
||||||
|
|
||||||
|
enum {
|
||||||
|
V2X2_FLAG_CAMERA = 0x01, // also automatic Missile Launcher and Hoist in one direction
|
||||||
|
V2X2_FLAG_VIDEO = 0x02, // also Sprayer, Bubbler, Missile Launcher(1), and Hoist in the other dir.
|
||||||
|
V2X2_FLAG_FLIP = 0x04,
|
||||||
|
V2X2_FLAG_UNK9 = 0x08,
|
||||||
|
V2X2_FLAG_LIGHT = 0x10,
|
||||||
|
V2X2_FLAG_UNK10 = 0x20,
|
||||||
|
V2X2_FLAG_BIND = 0xC0,
|
||||||
|
// flags going to byte 10
|
||||||
|
V2X2_FLAG_HEADLESS = 0x02,
|
||||||
|
V2X2_FLAG_MAG_CAL_X = 0x08,
|
||||||
|
V2X2_FLAG_MAG_CAL_Y = 0x20,
|
||||||
|
V2X2_FLAG_EMERGENCY = 0x80, // JXD-506
|
||||||
|
// flags going to byte 11 (JXD-506)
|
||||||
|
V2X2_FLAG_START_STOP = 0x40,
|
||||||
|
V2X2_FLAG_CAMERA_UP = 0x01,
|
||||||
|
V2X2_FLAG_CAMERA_DN = 0x02,
|
||||||
|
};
|
||||||
|
|
||||||
// This is frequency hopping table for V202 protocol
|
// This is frequency hopping table for V202 protocol
|
||||||
// The table is the first 4 rows of 32 frequency hopping
|
// The table is the first 4 rows of 32 frequency hopping
|
||||||
// patterns, all other rows are derived from the first 4.
|
// patterns, all other rows are derived from the first 4.
|
||||||
|
@ -29,28 +29,6 @@
|
|||||||
#define V2X2_PACKET_CHKTIME 100
|
#define V2X2_PACKET_CHKTIME 100
|
||||||
#define V2X2_PAYLOADSIZE 16
|
#define V2X2_PAYLOADSIZE 16
|
||||||
|
|
||||||
//
|
|
||||||
enum {
|
|
||||||
V2X2_FLAG_CAMERA = 0x01, // also automatic Missile Launcher and Hoist in one direction
|
|
||||||
V2X2_FLAG_VIDEO = 0x02, // also Sprayer, Bubbler, Missile Launcher(1), and Hoist in the other dir.
|
|
||||||
V2X2_FLAG_FLIP = 0x04,
|
|
||||||
V2X2_FLAG_UNK9 = 0x08,
|
|
||||||
V2X2_FLAG_LIGHT = 0x10,
|
|
||||||
V2X2_FLAG_UNK10 = 0x20,
|
|
||||||
V2X2_FLAG_BIND = 0xC0,
|
|
||||||
// flags going to byte 10
|
|
||||||
V2X2_FLAG_HEADLESS = 0x02,
|
|
||||||
V2X2_FLAG_MAG_CAL_X = 0x08,
|
|
||||||
V2X2_FLAG_MAG_CAL_Y = 0x20,
|
|
||||||
V2X2_FLAG_EMERGENCY = 0x80, // JXD-506
|
|
||||||
// flags going to byte 11 (JXD-506)
|
|
||||||
V2X2_FLAG_START_STOP = 0x40,
|
|
||||||
V2X2_FLAG_CAMERA_UP = 0x01,
|
|
||||||
V2X2_FLAG_CAMERA_DN = 0x02,
|
|
||||||
};
|
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
V202_INIT2 = 0,
|
V202_INIT2 = 0,
|
||||||
V202_INIT2_NO_BIND,//1
|
V202_INIT2_NO_BIND,//1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user