Skip to main content

A python package that provides simplified drone flight control

Project description

MAVCOM

Mavlink Communicator

Provides a simplified python interface for controlling Mavlink capable flight controllers.

Installation

pip install mavcon

Basic Usage

This is an example of how to use Mavcon with a simulated vehicle.

Run SITL:

sim_vehicle.py -v ArduCopter

from mavcon import mavcontrol
import time

vehicle = mavcon.Mavcon(
    connection_path = "127.0.0.1:14551",
)

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

mavcon-1.1.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

mavcon-1.1.3-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file mavcon-1.1.3.tar.gz.

File metadata

  • Download URL: mavcon-1.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for mavcon-1.1.3.tar.gz
Algorithm Hash digest
SHA256 f22abf875fa1bd9f504442bef279613f8d9eb5acc0f930152cbc6638418e21fe
MD5 b824219bf9077dad55911643b78b93f8
BLAKE2b-256 b13e4db4a1426b95f34d5557f92ae3cc9f3b44b95c3f0fe20beebc815afaed78

See more details on using hashes here.

File details

Details for the file mavcon-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: mavcon-1.1.3-py3-none-any.whl
  • Upload date:
  • Size: 9.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for mavcon-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e2545476b0a0a0e5d69ebf1a118ef04f50342087251673a3a6775f1212e12d26
MD5 bc41a54bee952319add79a443277a7a1
BLAKE2b-256 5cdb4beef102442a219ac92d6abd5cb969fa7290802daa6cdea77f837ed4aea6

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