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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mavcom-1.1.8-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

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

Hashes for mavcom-1.1.8.tar.gz
Algorithm Hash digest
SHA256 25ab54a5c87f72bdb307c45094adabd6768be531e31e2a9a1c5304beda9e8541
MD5 7ab9a5ccecd0313d5040a1c2eac1debb
BLAKE2b-256 2d8e4416e5a4d9c76a56bb5fde5e0bd637132470b46a7d9ccfd970894979dc78

See more details on using hashes here.

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

Hashes for mavcom-1.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 91f5014ecee9ac0aa1dbe22d3686219c0c2704b511c5d8322dc78ce5e355f6f0
MD5 884f990c47fe42da267a2dcdfeef59fd
BLAKE2b-256 f28bca053e059f713cb413da5d4f1d116ea7675aae09f5eccc5160edb1a3401a

See more details on using hashes here.

Supported by

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