control
class AltitudeMode
Inherits from: int, enum.Enum
Altitude mode switch.
Attributes
attr ABSOLUTE (0)
attr RELATIVE (1)
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)
attr HEADING_START (1)
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)
attr NEU (1)
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)
attr OFFSET (1)
attr VELOCITY (2)
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)
attr set_primary (bool)
attr set_fps (int)
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