Motors feature

event message olympe.messages.motors.three_motors_flight_ended(_policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

motors.three_motors_flight_ended

Three motors mode ended

Parameters:

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

with an up to date firmware

Triggered: When the drone has finished three motors flight.

event message olympe.messages.motors.three_motors_flight_started(id=None, reason=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

motors.three_motors_flight_started

Three motors mode started

Parameters:

idolympe.enums.motors.motor_id

ID of the defective motor responsible for three motors flight.

reasonolympe.enums.motors.three_motors_reason

Motor error reason for three motors flight.

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

with an up to date firmware

Triggered: When a motor is down and conditions for three motors flight are met. When the user reconnects during a three motors flight.

enum olympe.enums.motors.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.motors.motor_id

Motor identifier

none:

No identifier given. (0)

front_left:

Front left motor. (1)

front_right:

Front right motor. (2)

back_right:

Back right motor. (3)

back_left:

Back left motor. (4)

enum olympe.enums.motors.three_motors_reason

Motor error reason for three motors flight.

unknown:

Unkown reason. (0)

motor_stalled:

ESC error : Motor Stalled. (1)

propeller_security:

ESC error : Propeller Security. (2)

rc_emergency_stop:

ESC error : Emergency Stop. (3)

defective_prop:

Defective propeller detected. (4)