Skip to content

Commit

Permalink
FrSkyD: Change hopping frequencies
Browse files Browse the repository at this point in the history
WARNING: all receivers must be rebound !!!
  • Loading branch information
Pascal Langer committed Mar 21, 2020
1 parent 62250d2 commit 2b8ed25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion Multiprotocol/FrSkyD_cc2500.ino
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ static void __attribute__((unused)) frsky2way_init(uint8_t bind)
{
FRSKY_init_cc2500(FRSKYD_cc2500_conf);

CC2500_WriteReg(CC2500_1B_AGCCTRL2, bind ? 0x43 : 0x03);
CC2500_WriteReg(CC2500_09_ADDR, bind ? 0x03 : rx_tx_addr[3]);
CC2500_WriteReg(CC2500_07_PKTCTRL1, 0x05);
CC2500_Strobe(CC2500_SIDLE); // Go to idle...
Expand Down Expand Up @@ -95,7 +96,17 @@ static void __attribute__((unused)) frsky2way_data_frame()

uint16_t initFrSky_2way()
{
Frsky_init_hop();
//FrskyD init hop
for(uint8_t i=0;i<50;i++)
{
uint8_t freq = (i * 0x1e) % 0xeb;
if(i == 3 || i == 23 || i == 47)
freq++;
if(i > 47)
freq=0;
hopping_frequency[i]=freq;
}

packet_count=0;
if(IS_BIND_IN_PROGRESS)
{
Expand Down
2 changes: 1 addition & 1 deletion Multiprotocol/Multiprotocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_REVISION 0
#define VERSION_PATCH_LEVEL 74
#define VERSION_PATCH_LEVEL 75

//******************
// Protocols
Expand Down

0 comments on commit 2b8ed25

Please sign in to comment.