Code for our entry into the 2027 STORM competition, name TBD.
The repository is divided into 3 main sections: the Robot code, the Base Station code, and the robot firmware. The robot code is written in Python, and sort of based on last year's code. The base station code is written in HTML/JavaScript, and does away with the separate Python process that we had last year. The firmware is written in C++ using the Arduino library, and is based on work done over the summer that you can find on the test/stormlib branch in last year's repository.
More information can be found in the STORM 2027 Software Architecture document.
NOTE: You will need Python >= 3.15 installed!
To prepare to run the Robot code, follow these steps:
-
Clone the Repository:
HTTPS:
git clone https://github.com/SoonerRobotics/storm_software_2027.gitSSH:git@github.com:SoonerRobotics/storm_software_2027.git -
Setup the Virtual Environment:
Windows:
py -m venv venv venv\Scripts\activatePowerShell users: if
venv\Scripts\activatefails with "running scripts is disabled on this system", run the command below, then runvenv\Scripts\activateagain. It only applies to the current PowerShell window.Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass
macOS/Linux:
python3.15 -m venv venv source venv/bin/activate -
Install the required dependencies:
pip install -r requirements.txt
-
Download Libhv:
If you do not already have libhv from last year, perform the following steps (5-6) to install it.
Clone the repository if you don't already have it (in a different location from the STORM repository):
git clone https://github.com/ithewei/libhv.gitIf you do not have a compiler, try
sudo apt install build-essential cmake
-
Install libhv:
Navigate to the libhv repository you just downloaded, and install it.
cd libhv mkdir build cd build cmake .. cmake --build . sudo make install
-
Clone the Websocket Server:
git clone https://github.com/antonioc76/Sockets-U-Serialization.git cd Sockets-U-Serialization -
Build & Install the Websocket Server:
mkdir build cmake -S ./ws_server -B ./build -DCMAKE_CXX_COMPILER=g++-13 cmake --build ./build
That's it! You should be all good to run the robot code now.
There are no installation instructions for the base station code. Just clone the repository, and then follow the instructions below to run it.
To run the robot code, perform the following steps:
TODO: we really should have an auto-run service or something for this...
TODO: also, we will need to change the IP address somewhere in the code, probably for both robot and base station. add a step for where it needs to be changed.
-
SSH into the robot
ssh scr@192.168.1.79
-
Navigate to the websocket server repository
cd ~/Documents/Sockets-U-Serialization/
-
Start the websocket server
./ws_server
-
Navigate to the STORM 2027 repository
cd ~/Documents/storm_software_2027/robot
-
Start the robot code
python3 ./main.py
To "run" the base station code, simply open base_station/index.html in a web browser.
The (tentative) controls for the robot are shown in the diagram below.
The firmware features an entirely new communications library, StormLib, for sending custom messages back and forth over RS-485. The full details are explained in the STORM 2027 Serial Specification, but the gist of it is that there are variable-length Commands, Requests, and Responses. Only the robot's computer is allowed to initiate communication, and individual board firmware only ever receives messages, or responds to an explicit request from the computer, and never sends messages of its own volition. This is described by the diagram below.
To install the firmware on one of the PCBs, perform the following steps. The steps are exactly the same for either the Traversal or Cannon board, though the actual file you are uploading will be different.
-
Download and install the Arduino IDE from https://www.arduino.cc/en/software/
-
Install Earl's Arduino Pico Library by following the instructions in the README, you may have to scroll down to find them.
-
Install the other following libraries:
TODO...? RS-485? Servo?
We don't have to be super formal, especially with the lack of experienced software members, so just stick to the following general rules:
- Prefix branch names with either
feat/orbug/ortest/, depending on what the branch is. - Never push directly to main, open a pull request and have at least 1 other member review it.
- Don't clutter the repository with build files or other files generated by tools. If you need help adding something to the
.gitignore, just ask.
Software development done by Daniel Brown (captain), Brendan Richards, Josh Kernop, and Saul Harrison. Firmware development done by Daniel Brown (captain), Tyler Afonien, Evan Woods, and Diego Barrios. Special thanks to mentors/alumni Noah Zemlin, Braden White, Dylan Zemlin, and Tyler Julian.
STORM Software 2027, Sooner Competitive Robotics.

