Gauge Firmware Updater feature

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

gauge_fw_updater.prepare

Prepare Update

Parameters:

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

for firmware release versions 1.6.5

ANAFI Thermal:

for firmware release versions 1.6.5

Result: status() with ‘preparation_in_progress’ then ‘ready_to_update’ state, and progress() with ‘in_progress’ then ‘success’ result and percent

Expectations: status(state='preparation_in_progress', _policy='wait') & progress(result='in_progress', _policy='wait') & status(state='ready_to_update', _policy='wait') & progress(result='success', _policy='wait')

event message olympe.messages.gauge_fw_updater.progress(result=None, percent=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

gauge_fw_updater.progress

Progress of the command Prepare or Update

Parameters:

resultolympe.enums.gauge_fw_updater.result

Result.

percentu8

Percentage (%), only for prepare().

_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.6.5

ANAFI Thermal:

for firmware release versions 1.6.5

Triggered: On changes by prepare() and update()

event message olympe.messages.gauge_fw_updater.status(diag=None, missing_requirements=None, state=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

gauge_fw_updater.status

Status of the Gauge Firmware Updater

Parameters:

diagolympe.enums.gauge_fw_updater.diag

Diagnostic.

missing_requirementsBitfieldOf(olympe.enums.gauge_fw_updater.requirements, u32)

Missing Requirements.

stateolympe.enums.gauge_fw_updater.state

State.

_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.6.5

ANAFI Thermal:

for firmware release versions 1.6.5

Triggered: At connection; on changes by prepare() and update()

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

gauge_fw_updater.update

Update

Parameters:

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

for firmware release versions 1.6.5

ANAFI Thermal:

for firmware release versions 1.6.5

Result: status() with ‘update_in_progress’ state, and progress() with ‘in_progress’ result

Expectations: status(state='update_in_progress', _policy='wait') & progress(result='in_progress', _policy='wait')

enum olympe.enums.gauge_fw_updater.diag

Gauge Firmware Diagnostic

up_to_date:

Gauge Firmware is Up-to-Date. (0)

cannot_update:

Gauge Firmware cannot be updated. (1)

updatable:

Gauge Firmware can be updated. (2)

enum olympe.enums.gauge_fw_updater.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.gauge_fw_updater.requirements

Requirements of Gauge Firmware Service

usb:

USB power is provided. (0)

rsoc:

RSOC is enough. (1)

drone_state:

Drone is landed. (2)

enum olympe.enums.gauge_fw_updater.result

Result of Gauge Firmware Service

success:

Result is Success. (0)

in_progress:

In Progress. (1)

bad_diag:

Bad Diagnostic. (2)

not_prepared:

Not Prepared. (3)

requirements_not_achieved:

Requirements not Achieved. (4)

battery_error:

Problem with Battery. (5)

enum olympe.enums.gauge_fw_updater.state

State of Gauge Firmware Service

ready_to_prepare:

Service is ready to prepare Update. (0)

preparation_in_progress:

Service Preparation is in Progress. (1)

ready_to_update:

Service is ready to Update. (2)

update_in_progress:

Service Update is in Progress. (3)