Ardrone3.Sound*#
- command message olympe.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
Unsupported message
Todo
Remove unsupported message ardrone3.Sound.StartAlertSound
Result: The drone makes a sound and send back
AlertSound()with state playing.Expectations:
AlertSound(state='playing', _policy='wait')
- command message olympe.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
Unsupported message
Todo
Remove unsupported message ardrone3.Sound.StopAlertSound
Result: The drone stops its alert sound and send back
AlertSound()with state stopped.Expectations:
AlertSound(state='stopped', _policy='wait')
- event message olympe.messages.ardrone3.SoundState.AlertSound(state=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#
ardrone3.SoundState.AlertSound
Alert sound state.
- Parameters:
_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
Unsupported message
Todo
Remove unsupported message ardrone3.SoundState.AlertSound
Triggered by
StartAlertSound()orStopAlertSound()or when the drone starts or stops to play an alert sound by itself.
- enum olympe.enums.ardrone3.SoundState.AlertSound_State#
State of the alert sound
- stopped:
Alert sound is not playing (0)
- playing:
Alert sound is playing (1)