Skip to main content

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

  • 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")

Metadata

Release files for albatros-uav 0.16.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for albatros-uav 0.16.0
File Size Uploaded
albatros_uav-0.16.0.tar.gz 26.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for albatros-uav 0.16.0
File Interpreter ABI Platform
albatros_uav-0.16.0-py3-none-any.whl Python 3 none any Details

Total release size: 57.5 kB

Release files / albatros_uav-0.16.0.tar.gz

Download URL albatros_uav-0.16.0.tar.gz
Size 26.4 kB
Tags Source
SHA-256 checksum
How to use checksums
60d5f4a1c3bb70b855d419ceaed464518beb396b9c456b99ed6ff9b3c0735d9a
BLAKE2b-256 checksum
How to use checksums
63a5d3b58fd0c44ef525229be0258b54fc54659a6bd7cfda50ef8823d0ea4519
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.5 Linux/6.6.47-1-MANJARO

Release files / albatros_uav-0.16.0-py3-none-any.whl

Download URL albatros_uav-0.16.0-py3-none-any.whl
Size 31.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db2f5d07f9aa13a76a38373c3f64ca0ac7a9cb0a366cfdd4d3eead59c5462b15
BLAKE2b-256 checksum
How to use checksums
d8af92021881d3ec654864e1ba0dc984cef34afa29cd7dd57463f1c53135d4ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.5 Linux/6.6.47-1-MANJARO

Release history Release notifications | RSS feed

This release

0.16.0 This release

2 release files

0.15.1

2 release files

0.15.0

2 release files

0.13.0

2 release files

0.12.0

2 release files

0.11.0

2 release files

0.10.1

2 release files

0.9.0

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page