| Crates.io | cu-rp-balancebot |
| lib.rs | cu-rp-balancebot |
| version | 0.9.1 |
| created_at | 2024-10-12 20:09:21.756372+00 |
| updated_at | 2025-09-12 20:49:57.986332+00 |
| description | This is a full robot example for the Copper project. It runs on the Raspberry Pi with the balance bot hat to balance a rod. |
| homepage | https://github.com/copper-project |
| repository | https://github.com/copper-project/copper-rs |
| max_upload_size | |
| id | 1406847 |
| size | 257,973 |
with:
$ cd examples/cu_rp_balancebot
$ cargo run --release
See the UI help for the navigation.
To debug the game engine side you can add a perf overlay with:
cargo run --release --features perf-ui
(you need at least a log in logs for example from a simulation run).
$ cd examples/cu_rp_balancebot
$ cargo run --bin balancebot_resim --release
It will recreate the logs from only the inputs of the previous run in logs/balancebot_resim*.copper.
You will need to cross compile for Arm:
cargo build --target armv7-unknown-linux-musleabihf --release --no-default-features
Be sure you save your log string index:
cp -rv ../../target/armv7-unknown-linux-musleabihf/release/cu29_log_index . # or anywhere you want
Deploy on the target:
scp ../../target/armv7-unknown-linux-musleabihf/release/balancebot copperconfig.ron copper7:copper/ # change to match your target
$ cd examples/cu_rp_balancebot
$ cargo run --bin balancebot-logreader --release