Controller Info feature

command message olympe.messages.controller_info.barometer(pressure, timestamp, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.barometer

Controller barometer info

Parameters:

pressurefloat

Atmospheric pressure in Pa

timestampdouble

Timestamp of the barometer info (in milliseconds), from a monotonic clock (not necessarily linked to utc clock)

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

ANAFI Ai:

with an up to date firmware

ANAFI_UA:

with an up to date firmware

ANAFI USA:

with an up to date firmware

Result: The altitude of the controller is known by the drone. This command is not acknowledged by the drone.

command message olympe.messages.controller_info.barometer_v2(source, pressure, temperature, timestamp, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.barometer_v2

Controller barometer info

Parameters:

sourceolympe.enums.controller_info.source

Barometer data source.

pressurefloat

Atmospheric pressure in Pa

temperaturefloat

Barometer sensor temperature in Kelvin. This field is only used when source is “main” or “auxiliary”

timestampu64

Timestamp of the barometer info (in milliseconds), from a monotonic clock (not necessarily linked to utc clock)

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI Ai:

with an up to date firmware

Result: The altitude of the controller is known by the drone. This command is not acknowledged by the drone.

command message olympe.messages.controller_info.barometer_v2_available_data(source, available_data, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.barometer_v2_available_data

Barometer available data.

Parameters:

sourceolympe.enums.controller_info.source

Barometer data source.

available_dataBitfieldOf(olympe.enums.controller_info.barometer_available_data, u16)

Available data.

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI Ai:

with an up to date firmware

Result: The drone will know which data are available in barometer_v2 command.

event message olympe.messages.controller_info.capabilities(supported_command=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.capabilities

capabilities

Parameters:

supported_commandBitfieldOf(olympe.enums.controller_info.supported_command, u8)

Commands supported by the drone

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

ANAFI Ai:

with an up to date firmware

ANAFI_UA:

with an up to date firmware

ANAFI USA:

with an up to date firmware

Triggered: At connection.

command message olympe.messages.controller_info.gps(latitude, longitude, altitude, horizontal_accuracy, vertical_accuracy, north_speed, east_speed, down_speed, timestamp, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.gps

Controller gps info. This command is not acknowledged by the drone.

Parameters:

latitudedouble

Latitude of the controller (in deg)

longitudedouble

Longitude of the controller (in deg)

altitudefloat

Altitude of the controller (in meters, according to sea level)

horizontal_accuracyfloat

Horizontal accuracy (in meter)

vertical_accuracyfloat

Vertical accuracy (in meter)

north_speedfloat

North speed (in meter per second)

east_speedfloat

East speed (in meter per second)

down_speedfloat

Vertical speed (in meter per second) (down is positive)

timestampdouble

Timestamp of the gps info (in milliseconds), from a monotonic clock (not necessarily linked to utc clock)

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

ANAFI Ai:

with an up to date firmware

ANAFI_UA:

with an up to date firmware

ANAFI USA:

with an up to date firmware

Result: The position of the controller is known by the drone. It can be used for RTH or FollowMe.

command message olympe.messages.controller_info.gps_v2(source, latitude, longitude, amsl_altitude, wgs84_altitude, latitude_accuracy, longitude_accuracy, altitude_accuracy, north_velocity, east_velocity, up_velocity, velocity_accuracy, number_of_satellites, timestamp, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.gps_v2

Controller gps info. This command is not acknowledged by the drone.

Parameters:

sourceolympe.enums.controller_info.source

Gps data source

latitudedouble

Latitude (in deg)

longitudedouble

Longitude (in deg)

amsl_altitudefloat

Altitude (in meters above the mean sea level)

wgs84_altitudefloat

Altitude (in meters above the WGS 84 ellipsoid)

latitude_accuracyfloat

Latitude accuracy (in meter)

longitude_accuracyfloat

Longitude accuracy (in meter)

altitude_accuracyfloat

Altitude accuracy (in meter)

north_velocityfloat

North velocity (in meter per second)

east_velocityfloat

East velocity (in meter per second)

up_velocityfloat

Vertical velocity (in meter per second) (positive when moving up)

velocity_accuracyfloat

Velocity accuracy (in meter per second)

number_of_satellitesu8

The number of satellites

timestampu64

Timestamp of the gps info (in milliseconds), from a monotonic clock (not necessarily linked to utc clock)

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

ANAFI Ai:

with an up to date firmware

ANAFI_UA:

with an up to date firmware

ANAFI USA:

with an up to date firmware

Result: The position of the controller is known by the drone.

command message olympe.messages.controller_info.gps_v2_available_data(source, available_data, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.gps_v2_available_data

Gps available data.

Parameters:

sourceolympe.enums.controller_info.source

Gps data source

available_dataBitfieldOf(olympe.enums.controller_info.available_data, u16)

Available data.

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

ANAFI Ai:

with an up to date firmware

ANAFI_UA:

with an up to date firmware

ANAFI USA:

with an up to date firmware

Result: The drone will know which data are available in gps_v2 command.

command message olympe.messages.controller_info.magneto_temperature(temp, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.magneto_temperature

SkyController Magneto temperature in Kelvin.

Parameters:

tempfloat

SkyController magnetometer temperature

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI Ai:

with an up to date firmware

Triggered: Every 1 second

event message olympe.messages.controller_info.validity_from_drone(is_valid=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

controller_info.validity_from_drone

Controller gps validity viewed by the drone estimators

Parameters:

is_validu8

Boolean. Whether the gps is valid (1) or not (0), as seen by the drone

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

for firmware release versions 1.7.0

ANAFI Thermal:

for firmware release versions 1.7.0

ANAFI Ai:

with an up to date firmware

ANAFI_UA:

with an up to date firmware

ANAFI USA:

with an up to date firmware

Result: The controller gps validity as seen by the drone. Sent on status change and at connection.

enum olympe.enums.controller_info.available_data

Available data.

amsl_altitude:

Altitude (in meters above the mean sea level) is available. (0)

wgs84_altitude:

Altitude above the WGS 84 ellipsoid is available. (1)

altitude_accuracy:

Altitude accuracy is available. (2)

north_velocity:

North velocity is available. (3)

east_velocity:

East velocity is available. (4)

up_velocity:

Up velocity is available. (5)

velocity_accuracy:

Velocity accuracy is available. (6)

number_of_satellites:

Number of satellites is available. (7)

enum olympe.enums.controller_info.barometer_available_data

Available data for barometer.

pressure:

Atmospheric pressure in Pa. (0)

temperature:

Barometer sensor temperature in Kelvin. (1)

enum olympe.enums.controller_info.list_flags

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages

First:

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (0)

Last:

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (1)

Empty:

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (2)

Remove:

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (3)

enum olympe.enums.controller_info.source

Source of data.

main:

Gps data are coming from main gps device. (0)

auxiliary:

Gps data are coming from an auxiliary gps device (1)

enum olympe.enums.controller_info.supported_command

Command supported by drone.

gps:

Gps command is supported. (0)

gps_v2:

Gps v2 command is supported. (1)

barometer_v2:

Barometer v2 command is supported. (2)