To build the firmware for the tinympc controller on Crazyflie using WSL on Windows, follow these organized steps:
- Open Command Prompt as Administrator.
- Run:
wsl --install
- Download and install Python 3.7 or higher from Python.org.
- Check the option to add Python to PATH during installation.
- Open PowerShell or Command Prompt and run:
pip install cfclient
- Update the package list:
sudo apt update && sudo apt upgrade -y
- Install necessary build tools and dependencies:
sudo apt install -y build-essential cmake git python3 python3-dev
- In WSL, navigate to your desired directory and clone the repository:
git clone --recursive https://github.com/ginoekzhang/a2r-tinympc-crazyflie-firmware.git cd a2r-tinympc-crazyflie-firmware
- Run the configuration menu:
make menuconfig
- Navigate to:
- App Layer Configuration: Enable "App entry point."
- Controllers and Estimators: Enable "Out of tree."
- Save the configuration as
.config
.
- Compile the firmware using all available CPU cores:
make -j$(nproc)