Skip to main content

control


class AltitudeMode

Inherits from: int, enum.Enum

Altitude mode switch.

Attributes

attr  ABSOLUTE  (0) meters above Mean Sea Level

attr  RELATIVE  (1) meters above takeoff position

View Source
class AltitudeMode(int, Enum):
"""Altitude mode switch.

Attributes:
ABSOLUTE (0): meters above Mean Sea Level
RELATIVE (1): meters above takeoff position
"""
ABSOLUTE = 0
RELATIVE = 1


class HeadingMode

Inherits from: int, enum.Enum

Heading mode switch.

Attributes

attr  TO_TARGET  (0) orient towards the target location

attr  HEADING_START  (1) orient towards the given heading

View Source
class HeadingMode(int, Enum):
"""Heading mode switch.

Attributes:
TO_TARGET (0): orient towards the target location
HEADING_START (1): orient towards the given heading
"""
TO_TARGET = 0
HEADING_START = 1


class ReferenceFrame

Inherits from: int, enum.Enum

Reference frame mode switch.

Attributes

attr  BODY  (0) vehicle reference frame

attr  NEU  (1) NEU (North, East, Up) reference frame

View Source
class ReferenceFrame(int, Enum):
"""Reference frame mode switch.

Attributes:
BODY (0): vehicle reference frame
NEU (1): NEU (North, East, Up) reference frame
"""
BODY = 0
NEU = 1


class PoseMode

Inherits from: int, enum.Enum

Pose mode switch.

Attributes

attr  ANGLE  (0) absolute angle

attr  OFFSET  (1) request data // Offset from current

attr  VELOCITY  (2) rotational velocities

View Source
class PoseMode(int, Enum):
"""Pose mode switch.

Attributes:
ANGLE (0): absolute angle
OFFSET (1): request data // Offset from current
VELOCITY (2): rotational velocities
"""
ANGLE = 0
OFFSET = 1
VELOCITY = 2


class ImagingSensorConfiguration

Inherits from: Datatype

Configuration for an imaging sensor.

Attributes

attr  id  (int) target imaging sensor ID

attr  set_primary  (bool) set this sensor as the primary stream

attr  set_fps  (int) target FPS for stream

View Source
@register_data
class ImagingSensorConfiguration(Datatype):
"""Configuration for an imaging sensor.

Attributes:
id (int): target imaging sensor ID
set_primary (bool): set this sensor as the primary stream
set_fps (int): target FPS for stream
"""
id: int
set_primary: bool
set_fps: int