This is the repo for the Arduino proxy, a somewhat simple project that allows the rocket code to use an Arduino for generic input and outputs. See the documentation for more information .
If you plan on flashing the Arduino, you can't use WSL and just follow the Linux instructions like with the rocket code.
- Install PlatformIO Core: https://docs.platformio.org/en/latest/core/installation.html#installer-script
- While it is possible to get it working with IDEs such as VSCode and CLion, from the team's experience there are often problems encountered while doing this. For general development it is recommended to get the PlatformIO integration with IDEs, but it is not needed to build the project.
- Install protobuf dependencies. This may be different on other non Ubuntu-based distros:
sudo apt update && sudo apt install protobuf-compiler nanopb
- Install nanopb to your path
- Download a build from https://jpa.kapsi.fi/nanopb/download/
- Extract
generator-bin
to some folder - Add the folder to your PATH
Note: If the platform-io installer script doesn't work, try installing with pip install -U platformio
-
Build the project:
pio run
-
Upload to a connected Arduino:
pio run --target upload
Note: on Windows, you might get an access denied error. You need to temporarly turn off Windows Security settings in order to build ( Issue ). For this, go on Settings -> Update & Security -> Windows Security -> Open Windows Security -> Virus & Threat protection -> Virus & threat protection settings (Manage settings) and turn off the security settings.
Make sure to open the Arduino project in another VSCode window and make sure it is not running in WSL if on Windows.