A SITL for Betaflight
Project description
Python Wrapper for the Betaflight SITL
pip install sitl
Run
ui-server
Navigate to http://localhost:13337
New terminal: Run
sitl-websockify
Navigate to https://app.betaflight.com. Options => Enable manual connection mode. Port: Manual Selection and paste ws://127.0.0.1:6761
Create gamepad mapping in the following form:
{
"throttle": {"axis": 1, "invert": true},
"yaw": {"axis": 0, "invert": false},
"roll": {"axis": 3, "invert": false},
"pitch": {"axis": 4, "invert": true},
"arm": {"button": 5, "invert": false}
}
You can identify the axes by running:
sitl-gamepad
And moving the axes and buttons around
New terminal: Run
sitl path/to/gamepad_mapping.json
Troubleshooting
Ports in use:
netstat -tulpn | grep 13337
netstat -tulpn | grep 6761
netstat -tulpn | grep 5761
netstat -tulpn | grep 9002
netstat -tulpn | grep 9003
netstat -tulpn | grep 9004
kill -9 {PID (last number in row)}
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sitl-0.0.5.tar.gz
(3.6 kB
view details)
File details
Details for the file sitl-0.0.5.tar.gz.
File metadata
- Download URL: sitl-0.0.5.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7d187b7c0aa4ab5a81cdff5b91f0edd7623bd5aad8a807f53755cb9c0215c48
|
|
| MD5 |
1df4f83b797eaa8642df142b7197dbc0
|
|
| BLAKE2b-256 |
538b5edd5849a0b0581ed186587cc58de8011e2ca41236dde4415621d9ab0849
|