Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update frequencies for RoboCup 2023 #81

Merged
merged 2 commits into from
Jul 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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