Protocol DM002: add 1 more TX ID/RF set

Total of 3 known TX IDs & RFs sets.
This commit is contained in:
Pascal Langer 2017-11-28 17:24:24 +01:00
parent 5a342cf8e6
commit cc83177542
3 changed files with 16 additions and 11 deletions

View File

@ -132,16 +132,21 @@ uint16_t DM002_callback()
static void __attribute__((unused)) DM002_initialize_txid() static void __attribute__((unused)) DM002_initialize_txid()
{ {
// Only 2 IDs/RFs are available, RX_NUM is used to switch between them // Only 3 IDs/RFs are available, RX_NUM is used to switch between them
if(rx_tx_addr[3]&1) switch(rx_tx_addr[3]%3)
{ {
case 0:
memcpy(hopping_frequency,(uint8_t *)"\x34\x39\x43\x48",4); memcpy(hopping_frequency,(uint8_t *)"\x34\x39\x43\x48",4);
memcpy(rx_tx_addr,(uint8_t *)"\x47\x93\x00\x00\xD5",5); memcpy(rx_tx_addr,(uint8_t *)"\x47\x93\x00\x00\xD5",5);
} break;
else case 1:
{
memcpy(hopping_frequency,(uint8_t *)"\x35\x39\x3B\x3D",4); memcpy(hopping_frequency,(uint8_t *)"\x35\x39\x3B\x3D",4);
memcpy(rx_tx_addr,(uint8_t *)"\xAC\xA1\x00\x00\xD5",5); memcpy(rx_tx_addr,(uint8_t *)"\xAC\xA1\x00\x00\xD5",5);
break;
case 2:
memcpy(hopping_frequency,(uint8_t *)"\x32\x37\x41\x46",4);
memcpy(rx_tx_addr,(uint8_t *)"\x92\x45\x01\x00\xD5",5);
break;
} }
} }

View File

@ -19,7 +19,7 @@
#define VERSION_MAJOR 1 #define VERSION_MAJOR 1
#define VERSION_MINOR 1 #define VERSION_MINOR 1
#define VERSION_REVISION 6 #define VERSION_REVISION 6
#define VERSION_PATCH_LEVEL 32 #define VERSION_PATCH_LEVEL 33
//****************** //******************
// Protocols // Protocols
//****************** //******************

View File

@ -491,7 +491,7 @@ FLIP|MODE|PICTURE|VIDEO|HEADLESS|RTH
## DM002 - *33* ## DM002 - *33*
Autobind protocol Autobind protocol
**Only 2 TX IDs available, change RX_Num value 0-1 to cycle through them** **Only 3 TX IDs available, change RX_Num value 0-1-2 to cycle through them**
CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11 CH1|CH2|CH3|CH4|CH5|CH6|CH7|CH8|CH9|CH10|CH11
---|---|---|---|---|---|---|---|---|----|---- ---|---|---|---|---|---|---|---|---|----|----