Ardrone3.Sound*

command messageolympe.messages.ardrone3.Sound.StartAlertSound(_timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))

Ardrone3.Sound.StartAlertSound

Start the alert sound. The alert sound can only be started when the drone is not flying.

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

Result: The drone makes a sound and send back AlertSound() with state playing.

Expectations: AlertSound(state='playing', _policy='wait')

command messageolympe.messages.ardrone3.Sound.StopAlertSound(_timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))

Ardrone3.Sound.StopAlertSound

Stop the alert sound.

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

Result: The drone stops its alert sound and send back AlertSound() with state stopped.

Expectations: AlertSound(state='stopped', _policy='wait')

event messageolympe.messages.ardrone3.SoundState.AlertSound(state=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))

Ardrone3.SoundState.AlertSound

Alert sound state.

Parameters:
  • state (olympe.enums.ardrone3.SoundState.AlertSound_State) –
  • _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

Triggered by StartAlertSound() or StopAlertSound() or when the drone starts or stops to play an alert sound by itself.

enumolympe.enums.ardrone3.SoundState.AlertSound_State

State of the alert sound

stopped:Alert sound is not playing (0)
playing:Alert sound is playing (1)