Auto Look At feature#

event messageolympe.messages.auto_look_at.info(mode=None, missing_inputs=None, improvements=None, list_flags=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

auto_look_at.info

Describes the missing inputs which prevent from starting a look at mode, and improvements

Parameters
  • mode (olympe.enums.auto_look_at.mode) – Mode of look at.

  • missing_inputs (BitfieldOf(olympe.enums.auto_look_at.indicator, u32)) – List of missing requirements to enter this mode. If at least one input is missing, drone won’t be able to look at the target. It won’t use any fallback either.

  • improvements (BitfieldOf(olympe.enums.auto_look_at.indicator, u32)) – List of inputs that can improve the mode.

  • list_flags (BitfieldOf(olympe.enums.auto_look_at.list_flags, u8)) –

  • _policy (olympe.arsdkng.expectations.ExpectPolicy) – specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

  • _float_tol (tuple) – 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

Supported by:

Anafi Ai

with an up to date firmware

Triggered During connection and when the list of missing requirements or improvements changes for the mode

command messageolympe.messages.auto_look_at.start(mode, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))#

auto_look_at.start

Start a look at. Sending this command will stop other running look at.

Parameters
  • mode (olympe.enums.auto_look_at.mode) –

  • _timeout (int) – command message timeout (defaults to 10)

  • _no_expect (bool) – if True for,do not expect the usual command expectation (defaults to False)

  • _float_tol (tuple) – 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

Supported by:

Anafi Ai

with an up to date firmware

Result: Event state().

Expectations: state(mode=self.mode, behavior='look_at', _policy='wait')

event messageolympe.messages.auto_look_at.state(mode=None, behavior=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

auto_look_at.state

State of the look at.

Parameters
  • mode (olympe.enums.auto_look_at.mode) – Current mode.

  • behavior (olympe.enums.auto_look_at.behavior) – Current behavior.

  • _policy (olympe.arsdkng.expectations.ExpectPolicy) – specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

  • _float_tol (tuple) – 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

Supported by:

Anafi Ai

with an up to date firmware

Triggered by any changes on the look at, like start(), stop()

command messageolympe.messages.auto_look_at.stop(_timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))#

auto_look_at.stop

Stop current look at.

Parameters
  • _timeout (int) – command message timeout (defaults to 10)

  • _no_expect (bool) – if True for,do not expect the usual command expectation (defaults to False)

  • _float_tol (tuple) – 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

Supported by:

Anafi Ai

with an up to date firmware

Result: Event state() is triggered with mode equals to none.

Expectations: state(mode='none', behavior='idle', _policy='wait')

enumolympe.enums.auto_look_at.behavior#

Behavior.

idle

Drone is not looking at the target. (0)

look_at

Look at the target. (1)

enumolympe.enums.auto_look_at.indicator#

Indicators needed to start an animation.

drone_gps

Drone gps is not fixed. (0)

drone_magneto

Drone magneto is not valid. (1)

drone_geofence

Drone is out of geofence. (2)

drone_min_altitude

Drone is under min altitude. (3)

drone_max_altitude

Drone is above max altitude. (4)

drone_flying

Drone is not flying. (5)

target_position_accuracy

Target position has a bad accuracy. (6)

target_image_detection

Target image detection is not working. (7)

drone_target_distance_min

Drone is too close to target. (8)

drone_target_distance_max

Drone is too far from target. (9)

target_horiz_speed

Target horizontal speed is too high. (10)

target_vert_speed

Target vertical speed is too high. (11)

target_altitude_accuracy

Target altitude has a bad accuracy. (12)

drone_battery

Drone battery is insufficient. (13)

drone_state

Drone is not in a valid state. (14)

enumolympe.enums.auto_look_at.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)

enumolympe.enums.auto_look_at.mode#

Mode of look at.

none

No look at. (0)

target

Look at the target without moving automatically. (1)

pilot

Look at the pilot without moving automatically. Animations are available. (2)