Skip to content

Commit

Permalink
Merge pull request #81 from RoboTeamTwente/robocup23_frequencies
Browse files Browse the repository at this point in the history
Update frequencies for RoboCup 2023
  • Loading branch information
emielsteerneman authored Jul 3, 2023
2 parents ce320b4 + 173800a commit 71672de
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions Core/Inc/Wireless/Wireless.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@
#define WIRELESS_YELLOW_CHANNELS 0
#define WIRELESS_BLUE_CHANNELS 1

/*
* Frequency steps in MHz, starting at 2.4GHz, going up to 2.5GHz
* For the 2022 RoboCup, we have been assigned the band 2.494 GHz to 2.500 GHz
/* Frequency steps in MHz, starting at 2.4GHz, going up to 2.5GHz */

/* Frequencies for the RoboCup 2023 */
#define WIRELESS_CHANNEL_YELLOW_ROBOT_TO_BASESTATION 85
#define WIRELESS_CHANNEL_BLUE_ROBOT_TO_BASESTATION 86
#define WIRELESS_CHANNEL_YELLOW_BASESTATION_TO_ROBOT 87
#define WIRELESS_CHANNEL_BLUE_BASESTATION_TO_ROBOT 88

/* Frequencies below 2.4GHz to avoid WiFi. Officially not supported by documentation, but according to TIGERs it works */
/*
define WIRELESS_CHANNEL_YELLOW_ROBOT_TO_BASESTATION -10
define WIRELESS_CHANNEL_BLUE_ROBOT_TO_BASESTATION -11.5
define WIRELESS_CHANNEL_YELLOW_BASESTATION_TO_ROBOT -13
define WIRELESS_CHANNEL_BLUE_BASESTATION_TO_ROBOT -14.5
*/
// Because that wifi range (2.4 - 2.5) is very busy at robocup, we drop our channels as far as possible below that range:
#define WIRELESS_CHANNEL_YELLOW_ROBOT_TO_BASESTATION -10
#define WIRELESS_CHANNEL_BLUE_ROBOT_TO_BASESTATION -11.5
#define WIRELESS_CHANNEL_YELLOW_BASESTATION_TO_ROBOT -13
#define WIRELESS_CHANNEL_BLUE_BASESTATION_TO_ROBOT -14.5

#define WIRELESS_CHANNEL_DEFAULT_ROBOT_TO_BASESTATION WIRELESS_CHANNEL_YELLOW_ROBOT_TO_BASESTATION
#define WIRELESS_CHANNEL_DEFAULT_BASESTATION_TO_ROBOT WIRELESS_CHANNEL_YELLOW_BASESTATION_TO_ROBOT
Expand Down

0 comments on commit 71672de

Please sign in to comment.