ev3dev-pid-linefollow/README.md

30 lines
563 B
Markdown
Raw Permalink Normal View History

2023-01-29 16:20:58 +01:00
# EV3 Line follower using ev3dev-lang-rust
2021-09-03 09:52:00 +02:00
2023-01-29 16:20:58 +01:00
This program follows a line using a PID controller.
2021-09-03 09:52:00 +02:00
2022-01-30 15:37:24 +01:00
## Setup
Install the `armv5te-musl` toolchain
2021-09-03 09:52:00 +02:00
```bash
2022-01-30 15:37:24 +01:00
rustup target add armv5te-unknown-linux-musleabi
2021-09-03 09:52:00 +02:00
```
2023-01-29 16:20:58 +01:00
The robot needs exactly two large motors and exactly one color sensor.
2021-09-03 09:52:00 +02:00
## Usage
2022-01-30 15:37:24 +01:00
Build this project:
2021-09-03 09:52:00 +02:00
```bash
2022-01-30 15:37:24 +01:00
cargo build --release
2021-09-03 09:52:00 +02:00
```
2022-01-30 15:37:24 +01:00
The resulting binary can be found at `./target/armv5te-unknown-linux-musleabi/release/<ARTIFACT>`.
2023-01-29 16:20:58 +01:00
Alternatively use the provided script to build and upload the binary to the robot using ssh:
2022-01-30 15:37:24 +01:00
```bash
2023-01-29 16:20:58 +01:00
./upload.sh
2022-01-30 15:37:24 +01:00
```