mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 19:58:13 +00:00
Protocol DM002: add 1 more TX ID/RF set
Total of 3 known TX IDs & RFs sets.
This commit is contained in:
parent
5a342cf8e6
commit
cc83177542
@ -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)
|
||||||
{
|
{
|
||||||
memcpy(hopping_frequency,(uint8_t *)"\x34\x39\x43\x48",4);
|
case 0:
|
||||||
memcpy(rx_tx_addr,(uint8_t *)"\x47\x93\x00\x00\xD5",5);
|
memcpy(hopping_frequency,(uint8_t *)"\x34\x39\x43\x48",4);
|
||||||
}
|
memcpy(rx_tx_addr,(uint8_t *)"\x47\x93\x00\x00\xD5",5);
|
||||||
else
|
break;
|
||||||
{
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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
|
||||||
//******************
|
//******************
|
||||||
|
@ -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
|
||||||
---|---|---|---|---|---|---|---|---|----|----
|
---|---|---|---|---|---|---|---|---|----|----
|
||||||
|
Loading…
x
Reference in New Issue
Block a user