Skip to main content

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


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.6.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

mavcom-1.1.6-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file mavcom-1.1.6.tar.gz.

File metadata

  • Download URL: mavcom-1.1.6.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for mavcom-1.1.6.tar.gz
Algorithm Hash digest
SHA256 112fd4df94e9e5ce1bec248dd863d4fffdcd4b704fb75634c98fb02b40d83e74
MD5 c69b21147d4183f7b879c92eda74f840
BLAKE2b-256 dda9465124e10f9e61cf053134d8d31f9f38f6ce2d26cc48a622760312fe5d88

See more details on using hashes here.

File details

Details for the file mavcom-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: mavcom-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for mavcom-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 421138961023b6ef3e52912f7720ffba20b43783a41db80ed45296212716be03
MD5 c4207887f08ca3f25cae6d386ffa6e8e
BLAKE2b-256 43c253c8e733f2edfce8caf89f4119e7d4ce8374ffd14350d664e636b9bdb21e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page