A python package that creates a simplified programming interface for controlling Mavlink-capable flight controllers
Project description
MAVCOM
Mavlink Communicator
Provides a simplified python interface for controlling Mavlink capable flight controllers.
Installation
pip install mavcom
Basic Usage
This is an example of how to use Mavcom with a simulated vehicle. To connect to a flight controller, you will most likely use UART0, therefore the connection path will instead be "/dev/ttyS0".
Run SITL:
sim_vehicle.py -v ArduCopter
from mavcom.mavcontrol import Mavcom
import time
vehicle = Mavcom(
connection_path = "127.0.0.1:14550",
)
vehicle.start()
while not vehicle.ready:
print("Waiting for vehicle to initialise...")
time.sleep(1)
vehicle.motors_armed = True
while not vehicle.motors_armed:
print("Waiting for motors to spin up...")
time.sleep(1)
vehicle.flight_mode = "GUIDED"
vehicle.takeoff(alt=10)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mavcom-1.1.7.tar.gz
(13.0 kB
view details)
Built Distribution
mavcom-1.1.7-py3-none-any.whl
(13.1 kB
view details)
File details
Details for the file mavcom-1.1.7.tar.gz
.
File metadata
- Download URL: mavcom-1.1.7.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38685566740f13b146963b8292cb19693e05415f00bd177bf25c851beb18877a |
|
MD5 | e1662897a83a290f1ba3d36c1f616f13 |
|
BLAKE2b-256 | a7a9bef8c2d356c465f9e0178a673ae07254a6baafcb4bff380101ebdf26e6a0 |
File details
Details for the file mavcom-1.1.7-py3-none-any.whl
.
File metadata
- Download URL: mavcom-1.1.7-py3-none-any.whl
- Upload date:
- Size: 13.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f87e32d9b1fbb1515ab84fc0e2c61d46e693209cec09b84bcd3bfa58e8fc299 |
|
MD5 | 3bcb097a18324ced58f4eed53aa6b947 |
|
BLAKE2b-256 | 9607b168da3fa5a0be652e96d8600333c777cd42b6046f772f4f6580a13fb95f |