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)}
Metadata
Release files for sitl 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sitl-0.0.5.tar.gz | 3.6 kB | Without provenance | Details |
Release files / sitl-0.0.5.tar.gz
| Download URL | sitl-0.0.5.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7d187b7c0aa4ab5a81cdff5b91f0edd7623bd5aad8a807f53755cb9c0215c48
|
|
BLAKE2b-256 checksum How to use checksums |
538b5edd5849a0b0581ed186587cc58de8011e2ca41236dde4415621d9ab0849
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Security for sitl 0.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.