Piloting Style feature#

event message olympe.messages.piloting_style.capabilities(styles=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

piloting_style.capabilities

Capabilities

Parameters:
  • styles (BitfieldOf(olympe.enums.piloting_style.style, u8)) – Supported piloting styles.

  • _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:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Triggered At connection only.

command message olympe.messages.piloting_style.set_style(style, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))#

piloting_style.set_style

Configures piloting style.

Parameters:
  • style (olympe.enums.piloting_style.style) – Requested piloting style.

  • _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:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Result: style() event with the new style.

Expectations: style(style=self.style, _policy='wait')

event message olympe.messages.piloting_style.style(style=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

piloting_style.style

Current piloting style

Parameters:
  • style (olympe.enums.piloting_style.style) – Current Piloting style

  • _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:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Triggered At connection; on changes by set_style(); by the drone when style is automatically changed

enum olympe.enums.piloting_style.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.piloting_style.style#

Piloting style.

standard:

Piloting style is standard (0)

camera_operated:

Piloting style is camera operated, commands are relative to camera pitch (1)