-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
107 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Rust | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install SDL2 | ||
run: sudo apt install -y libsdl2-gfx-dev libsdl2-image-dev libsdl2-dev libsdl2-ttf-dev | ||
- name: Build | ||
run: cargo build --release | ||
- name: Run tests | ||
run: cargo test --verbose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,35 @@ | ||
# rust-tello-contoller | ||
Control DJI Ryze Tello from rust with XBOX gamepad | ||
|
||
## Quick Start | ||
|
||
```bash | ||
sudo apt install libsdl2-gfx-dev libsdl2-image-dev libsdl2-dev libsdl2-ttf-dev | ||
cargo run | ||
``` | ||
|
||
|
||
## Gauge Description | ||
|
||
from left to right, from top to bottom: | ||
* battery; drone temperature, approx 75 is red; Vx, Vy, Vz; Wifi signal strength | ||
* sensitvity setup; video screen ; light health | ||
* left stick; yaw; horizon; flight log; right stick | ||
* taken pictures carousel | ||
|
||
|
||
![ui](doc/ui.png) | ||
|
||
|
||
## Handling | ||
|
||
* `A` - take picture | ||
* `B` - toggle video on/off (default is off) | ||
* `X` - zoom in image on the carousel | ||
* `Horiz` - left/right - rotate the carousel | ||
* `Left stick` - forward/slide | ||
* `Right stick` - turn left/right | ||
* `RT` - move up | ||
* `LT` - move down | ||
* `RB` - sensitivity up | ||
* `LB` - sensitivity down |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters