Our entry to the Robocup Junior football competition.
The purpose of this project is to have two robots play a game of football against another team of two robots. One of our robots will act as a goalie while the other one will focus on attacking.
You must have avrdude and avr-gcc along with some other packages depending on your platform. You can find platform specific instructions in the avr-hal README.
Next you can install ravedude with:
cargo +stable install ravedudeThis project requires nightly Rust and to avoid weird bugs from mismatching versions this project contains a rust-toolchain.toml file to force the use of a specific nightly version.
After conencting the Arduino to your computer you can run the following commands to flash the code to the Arduino and start reading the serial port.
cargo run -p goalie # or attackEach robot, goalie and attack, have their own Rust crate for their game logic. Anything not related to game logic like reading sensors and controlling motors goes in the shared lib crate that both robot crates depend on.
There are also other crates under the tools directory that you may find useful. They can be run the same way as the goalie or attack crates, just use the name of the tool instead.