This repo contains the code for LCC's robot for Kryptik 2024, a robotics competition hosted by CRC Robotics.
The project is scaffolded using the PlatformIO framework, as it allows for flexible and platform-agnostic projects for embedded applications
with minimal configuration.
Make sure you have git installed on your machine. Then, clone this repository by command line:
git clone --recurse-submodules https://github.com/LCC-Robotics/LCC-Robotics-CRC-2023.gitThe full list of build methods can be found in PlatformIO's docs.
Install the PlatformIO extension for VSCode.
Open the project in VSCode. Then, in the PlatformIO extension menu, press Build to build the project, or
press Upload to build and upload the
firmware to the board.
Install the PlatformIO CLI tool.
cd into the project directory. Then, run one of the following commands:
# build only (default=release)
pio run
# build only (debug)
pio run --environment debug
# build and upload (default=release)
pio run --target upload
# build and upload (debug)
pio run --environment debug --target uploadIf you are using clangd or an IDE such as CLion, you will need to generate compile_commands.json in order to get
code completion and error checking working.
Generate compile_commands.json using PlatformIO CLI:
pio run --target compiledb