DRI feature#

event messageolympe.messages.dri.capabilities(supported_capabilities=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

dri.capabilities

Capabilities

Parameters
  • supported_capabilities (BitfieldOf(olympe.enums.dri.supported_capabilities, u16)) – Supported capabilities.

  • _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/AnafiFPV

with an up to date firmware

AnafiThermal

with an up to date firmware

Triggered At connection only.

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

dri.dri_mode

Set DRI mode.

Parameters
  • mode (olympe.enums.dri.mode) – Mode asked by user

  • _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/AnafiFPV

with an up to date firmware

AnafiThermal

with an up to date firmware

Result: The DRI mode is set. Event dri_state() is triggered.

Expectations: dri_state(mode=self.mode, _policy='wait')

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

dri.dri_state

DRI state mode

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

  • _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/AnafiFPV

with an up to date firmware

AnafiThermal

with an up to date firmware

Triggered At connection; on changes.

event messageolympe.messages.dri.dri_type(id=None, type=None, status=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

dri.dri_type

DRI type as stored by the drone

Parameters
  • id (string) – The ID related to the DRI type as stored by the drone. For EN4709-002 type, it will not include the hyphen and the 3 secure characters which are only used to verify the ID consistency.

  • type (olympe.enums.dri.dri_type) – The DRI type the DRI system is configured with.

  • status (olympe.enums.dri.status) – The current status of the DRI configuration.

  • _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/AnafiFPV

with an up to date firmware

AnafiThermal

with an up to date firmware

Triggered on change

event messageolympe.messages.dri.drone_id(type=None, value=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

dri.drone_id

DRI identifier

Parameters
  • type (olympe.enums.dri.id_type) –

  • value (string) –

  • _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/AnafiFPV

with an up to date firmware

AnafiThermal

with an up to date firmware

Triggered At connection

command messageolympe.messages.dri.set_dri_type(type, id, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))#

dri.set_dri_type

Set DRI type

Parameters
  • type (olympe.enums.dri.dri_type) – DRI type.

  • id (string) – Complete ID related to the DRI type. It can be empty if not required. For EN4709 type, it should include the 3 secure characters (and the hyphen).

  • _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/AnafiFPV

with an up to date firmware

AnafiThermal

with an up to date firmware

Result: The DRI type is set. The event dri_type() gives the command result

Expectations: dri_type(type=self.type, id=self.id, _policy='wait')

enumolympe.enums.dri.dri_type#

DRI Type

french

DRI wifi beacon respects the french regulation (0)

en4709_002

DRI wifi beacon respects the EN4709-002 european regulation (1)

enumolympe.enums.dri.id_type#

drone ID type

FR_30_Octets

French 30 bytes format (0)

ANSI_CTA_2063

ANSI CTA 2063 format on 40 bytes (1)

enumolympe.enums.dri.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.dri.mode#

The DRI mode

Enum aliases:

disabled

DRI mode is disabled (0)

enabled

DRI mode is enabled (1)

enumolympe.enums.dri.status#
failure

A failure happened during the command execution (0)

success

The related command successfully completed (1)

invalid_id

DRI id is missing or was malformed (2)

enumolympe.enums.dri.supported_capabilities#

Supported capabilities

on_off

Possibility to enable or disable the DRI Mode (0)

french_regulation

French DRI regulation is supported (1)

en4709_002_regulation

EN 4709-002 DRI regulation is supported (2)