Skip to main content

The tool for managing unmanned aerial vehicles missions.

Project description

Albatros UAV

A python library that provides high-level functions for UAVs based on MAVLink. It allows to easily handle communication with the flight controller to create friendly mission management systems.

Supported functionalities

Plane:

  • arming vehicle,
  • setting flight mode,
  • setting servos positions,
  • flying in GUIDED mode,
  • uploading mission and flying in AUTO mode,
  • param protocol.

Copter:

  • arming vehicle,
  • setting flight mode,
  • setting servos positions,
  • flying in GUIDED mode,
  • param protocol,
  • precision landing,
  • uploading mission and flying in AUTO mode.

Access to UAV telemetry via UAV.data

Supported MAVLink telemetry messages

  • Attitude
  • GlobalPositionInt
  • GPSRawInt
  • GPSStatus
  • Heartbeat
  • CommandACK
  • MissionACK
  • MissionRequestInt
  • RadioStatus
  • RcChannelsRaw
  • ServoOutputRaw
  • SysStatus
  • MissionItemReached
  • ParamValue
  • PositionTargetLocalNED
  • HomePosition
  • LocalPositionNED
  • NavControllerOutput

Examples

Creating connection

from albatros import Plane, ConnectionType
from albatros.telem import ComponentAddress

# SITL connection is default
plane = Plane()

# Direct connection to the flight controller
plane = Plane(device="/dev/tty/USB0/", baud_rate=57600)

# You can also specify the ID of the vehicle you want to connect to and the ID of your system
# read more about MAVLink Routing in ArduPilot: https://ardupilot.org/dev/docs/mavlink-routing-in-ardupilot.html
plane_addr = ComponentAddress(system_id=1, component_id=1)
gcs_addr = ComponentAddress(system_id=255, component_id=1)
plane = Plane(uav_addr=plane_addr, my_addr=gcs_addr)

Arming vehicle (SITL simulation)

$ python -m examples.arming_vehicle
from albatros import UAV

vehicle = UAV()

while not vehicle.arm():
    print("Waiting vehicle to arm")
print("Vehicle armed")

if not vehicle.disarm():
    print("Disarm vehicle failed")
print("Vehicle disarmed")

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

albatros_uav-0.16.0.tar.gz (26.4 kB view details)

Uploaded Source

Built Distribution

albatros_uav-0.16.0-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file albatros_uav-0.16.0.tar.gz.

File metadata

  • Download URL: albatros_uav-0.16.0.tar.gz
  • Upload date:
  • Size: 26.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.5 Linux/6.6.47-1-MANJARO

File hashes

Hashes for albatros_uav-0.16.0.tar.gz
Algorithm Hash digest
SHA256 60d5f4a1c3bb70b855d419ceaed464518beb396b9c456b99ed6ff9b3c0735d9a
MD5 356c403d0a222b95c1ab42180f407086
BLAKE2b-256 63a5d3b58fd0c44ef525229be0258b54fc54659a6bd7cfda50ef8823d0ea4519

See more details on using hashes here.

File details

Details for the file albatros_uav-0.16.0-py3-none-any.whl.

File metadata

  • Download URL: albatros_uav-0.16.0-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.5 Linux/6.6.47-1-MANJARO

File hashes

Hashes for albatros_uav-0.16.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db2f5d07f9aa13a76a38373c3f64ca0ac7a9cb0a366cfdd4d3eead59c5462b15
MD5 1da1b9f837ca1890f733a920308a75d2
BLAKE2b-256 d8af92021881d3ec654864e1ba0dc984cef34afa29cd7dd57463f1c53135d4ea

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