uav.vehicles.AirframeClass#

Attributes#

Classes#

AirframeClass

PX4 airframe classification used to choose a UAV implementation.

PX4Airframe

Module Contents#

class AirframeClass#

Bases: enum.IntEnum

PX4 airframe classification used to choose a UAV implementation.

MULTICOPTER = 0#
PLANE = 1#
VTOL = 2#
OTHER = 3#
UNKNOWN = 4#
classmethod parse(value)#
class PX4Airframe#
id: int#
alias: str#
model: str#
airframe_class: AirframeClass#
classmethod lookup_airframe(value: str) PX4Airframe#

Looks up airframe by either id, alias, or model if int –> id if str –> checks alias first then falls back to model.

Throws KeyError if fails

classmethod get_flying() list[PX4Airframe]#
__str__()#
AIRFRAMES: list[PX4Airframe]#
AIRFRAME_BY_ID: dict[int, PX4Airframe]#
AIRFRAME_BY_MODEL: dict[str, PX4Airframe]#
AIRFRAME_BY_ALIAS: dict[str, PX4Airframe]#