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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mavcom-1.1.8.tar.gz.
File metadata
- Download URL: mavcom-1.1.8.tar.gz
- Upload date:
- Size: 14.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25ab54a5c87f72bdb307c45094adabd6768be531e31e2a9a1c5304beda9e8541
|
|
| MD5 |
7ab9a5ccecd0313d5040a1c2eac1debb
|
|
| BLAKE2b-256 |
2d8e4416e5a4d9c76a56bb5fde5e0bd637132470b46a7d9ccfd970894979dc78
|
File details
Details for the file mavcom-1.1.8-py3-none-any.whl.
File metadata
- Download URL: mavcom-1.1.8-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91f5014ecee9ac0aa1dbe22d3686219c0c2704b511c5d8322dc78ce5e355f6f0
|
|
| MD5 |
884f990c47fe42da267a2dcdfeef59fd
|
|
| BLAKE2b-256 |
f28bca053e059f713cb413da5d4f1d116ea7675aae09f5eccc5160edb1a3401a
|