mirror of
https://github.com/pascallanger/DIY-Multiprotocol-TX-Module.git
synced 2025-02-04 22:58:10 +00:00
PELIKAN: new hopping tables
This commit is contained in:
parent
9cbcafe6cf
commit
a1737eab46
@ -291,9 +291,10 @@ const uint8_t PROGMEM pelikan_lite_hopp[][PELIKAN_NUM_RF_CHAN] = {
|
|||||||
#endif
|
#endif
|
||||||
#ifdef PELIKAN_SCX24_FORCE_HOP
|
#ifdef PELIKAN_SCX24_FORCE_HOP
|
||||||
const uint8_t PROGMEM pelikan_scx24_hopp[][PELIKAN_NUM_RF_CHAN] = {
|
const uint8_t PROGMEM pelikan_scx24_hopp[][PELIKAN_NUM_RF_CHAN] = {
|
||||||
{ 0x1E,0x32,0x46,0x5A,0x44,0x58,0x2E,0x42,0x56,0x2C,0x40,0x54,0x2A,0x3E,0x52,0x28,0x3C,0x50,0x26,0x3A,0x4E,0x24,0x38,0x4C,0x22,0x36,0x4A,0x20,0x1A },
|
/*TX1*/ { 0x1E,0x32,0x46,0x5A,0x44,0x58,0x2E,0x42,0x56,0x2C,0x40,0x54,0x2A,0x3E,0x52,0x28,0x3C,0x50,0x26,0x3A,0x4E,0x24,0x38,0x4C,0x22,0x36,0x4A,0x20,0x1A },
|
||||||
{ 0x2C,0x44,0x1E,0x52,0x56,0x22,0x3A,0x3E,0x34,0x4C,0x26,0x5A,0x50,0x2A,0x42,0x38,0x2E,0x46,0x20,0x54,0x4A,0x24,0x3C,0x32,0x28,0x40,0x58,0x1B,0x4E },
|
/*TX2*/ { 0x2C,0x44,0x1E,0x52,0x56,0x22,0x3A,0x3E,0x34,0x4C,0x26,0x5A,0x50,0x2A,0x42,0x38,0x2E,0x46,0x20,0x54,0x4A,0x24,0x3C,0x32,0x28,0x40,0x58,0x1B,0x4E },
|
||||||
{ 0x3C,0x4C,0x1E,0x4A,0x5A,0x2C,0x58,0x2A,0x3A,0x56,0x28,0x38,0x26,0x36,0x46,0x34,0x44,0x54,0x42,0x52,0x24,0x50,0x22,0x32,0x4E,0x20,0x40,0x3E,0x17 }
|
/*TX3*/ { 0x3C,0x4C,0x1E,0x4A,0x5A,0x2C,0x58,0x2A,0x3A,0x56,0x28,0x38,0x26,0x36,0x46,0x34,0x44,0x54,0x42,0x52,0x24,0x50,0x22,0x32,0x4E,0x20,0x40,0x3E,0x17 },
|
||||||
|
/*TX4*/ { 0x46,0x32,0x1E,0x58,0x44,0x5A,0x56,0x42,0x2E,0x54,0x40,0x2C,0x52,0x3E,0x2A,0x50,0x3C,0x28,0x4E,0x3A,0x26,0x4C,0x38,0x24,0x4A,0x36,0x22,0x20,0x1A }
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -346,21 +347,25 @@ void PELIKAN_init()
|
|||||||
{
|
{
|
||||||
#if defined(PELIKAN_SCX24_FORCE_HOP)
|
#if defined(PELIKAN_SCX24_FORCE_HOP)
|
||||||
// Hop frequency table
|
// Hop frequency table
|
||||||
uint8_t num=rx_tx_addr[3] % 0x03;
|
uint8_t num=rx_tx_addr[3] & 0x03;
|
||||||
if(num==1)
|
switch(num)
|
||||||
{//1
|
{
|
||||||
|
case 1:
|
||||||
rx_tx_addr[0]=0x10; // hopping freq TX2
|
rx_tx_addr[0]=0x10; // hopping freq TX2
|
||||||
rx_tx_addr[1]=0x63; // hopping freq TX2
|
rx_tx_addr[1]=0x63; // hopping freq TX2
|
||||||
}
|
break;
|
||||||
else if(num==2)
|
case 2:
|
||||||
{//2
|
rx_tx_addr[0]=0x81; // hopping freq TX3
|
||||||
rx_tx_addr[0]=0x81; // hopping freq Ben
|
rx_tx_addr[1]=0x63; // hopping freq TX3
|
||||||
rx_tx_addr[1]=0x63; // hopping freq Ben
|
break;
|
||||||
}
|
case 3:
|
||||||
else
|
rx_tx_addr[0]=0x36; // hopping freq TX4
|
||||||
{//0
|
rx_tx_addr[1]=0x5C; // hopping freq TX4
|
||||||
|
break;
|
||||||
|
default:
|
||||||
rx_tx_addr[0]=0x12; // hopping freq TX1
|
rx_tx_addr[0]=0x12; // hopping freq TX1
|
||||||
rx_tx_addr[1]=0x46; // hopping freq TX1
|
rx_tx_addr[1]=0x46; // hopping freq TX1
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
for(uint8_t i=0;i<PELIKAN_NUM_RF_CHAN;i++)
|
for(uint8_t i=0;i<PELIKAN_NUM_RF_CHAN;i++)
|
||||||
hopping_frequency[i]=pgm_read_byte_near(&pelikan_scx24_hopp[num][i]);
|
hopping_frequency[i]=pgm_read_byte_near(&pelikan_scx24_hopp[num][i]);
|
||||||
@ -371,6 +376,10 @@ void PELIKAN_init()
|
|||||||
rx_tx_addr[3]=0x19; // TX1
|
rx_tx_addr[3]=0x19; // TX1
|
||||||
rx_tx_addr[2]=0x80; // TX2
|
rx_tx_addr[2]=0x80; // TX2
|
||||||
rx_tx_addr[3]=0x22; // TX2
|
rx_tx_addr[3]=0x22; // TX2
|
||||||
|
rx_tx_addr[2]=0x30; // TX3
|
||||||
|
rx_tx_addr[3]=0x18; // TX3
|
||||||
|
rx_tx_addr[2]=0x30; // TX4
|
||||||
|
rx_tx_addr[3]=0x17; // TX4
|
||||||
#endif
|
#endif
|
||||||
A7105_WriteReg(A7105_0E_DATA_RATE,0x03);
|
A7105_WriteReg(A7105_0E_DATA_RATE,0x03);
|
||||||
if(IS_BIND_DONE)
|
if(IS_BIND_DONE)
|
||||||
|
@ -365,7 +365,7 @@ TX: Axial AX-4 2.4GHz transmitter, HPI TF-41 and Panda Hobby 3CH Smart Radio 2.4
|
|||||||
|
|
||||||
Models: Axial SCX24: Deadbolt, Jeep Wranger Rubicon, Chevrolet 1967 C10, B-17 Betty, HPI RF-50 and Panda Hobby: Tetra K1, X1, X2
|
Models: Axial SCX24: Deadbolt, Jeep Wranger Rubicon, Chevrolet 1967 C10, B-17 Betty, HPI RF-50 and Panda Hobby: Tetra K1, X1, X2
|
||||||
|
|
||||||
**Only 2 frequency hopping tables**
|
**Only 4 frequency hopping tables**
|
||||||
|
|
||||||
Extended limits supported
|
Extended limits supported
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user