PixHawk Library
A simple Python library for controlling Pixhawk drones easy. It provides an easy-to-use interface for basic flight commands, state retrieval, safety checks, and playing tunes on the Pixhawk buzzer.
⚠️ Danger
This is under develop project and not stable
Installation
pip install pixhawk-lib
Usage
from pixhawk_lib import PixHawk
# Initialize with default settings (non-blocking)
drone = PixHawk(connection_string='/dev/ttyACM0')
# Take off and rotate
drone.takeoff(5) # Take off to 5 meters
drone.clockwise(90) # Rotate 90 degrees clockwise
drone.land() # Land the drone
# With waiting enabled
drone = PixHawk(wait_until_done=True)
drone.takeoff(5) # Waits until 5 meters is reached
drone.play_tune('HAPPY_BIRTHDAY') # Play a tune
drone.disconnect()
Features
- Basic flight commands: takeoff, land, clockwise, counterclockwise
- Movement: move_forward, move_left, etc. (in centimeters)
- Continuous movement: forward, stop, etc.
- State retrieval: drone.state.battery(), drone.state.gps(), etc.
- Safety decorators: Battery and GPS checks
- Tunes: Predefined tunes like HAPPY_BIRTHDAY, DANGER
Requirements
- Python 3.9+
- DroneKit
- PyMAVLink
- pyserial
License
- MIT License
Metadata
Release files for pixhawk-lib 0.2.4
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 | Actions |
|---|---|---|---|---|
| pixhawk_lib-0.2.4.tar.gz | 10.6 kB | Without provenance | Details for pixhawk_lib-0.2.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pixhawk_lib-0.2.4-py3-none-any.whl | Python 3 | none | any | Details for pixhawk_lib-0.2.4-py3-none-any.whl |
Total release size: 21.6 kB
Release files / pixhawk_lib-0.2.4.tar.gz
| Download URL | pixhawk_lib-0.2.4.tar.gz |
|---|---|
| Size | 10.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d71d33bb7bb102bfda9af1a81316767738e9db4b212b2fe71e92fca7821197ac
|
|
BLAKE2b-256 checksum How to use checksums |
d808b71826e93ae5beb8a535c6368377bc4520e1669f8961748dbedd299adcb0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / pixhawk_lib-0.2.4-py3-none-any.whl
| Download URL | pixhawk_lib-0.2.4-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e0b7d75514a4e67363b94c06387effda92041213073391e22e453434bb1797b6
|
|
BLAKE2b-256 checksum How to use checksums |
5b3c815ae55ccf5ea917d7bd1888e1c0024d5b5a411dc824ce11e3819484954c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for pixhawk-lib 0.2.4
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.