Skyctrl.Common*¶
- command message olympe.messages.skyctrl.Common.AllStates(_timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)¶
skyctrl.Common.AllStates
Request the controller to send all its states.
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_mode
olympe.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:
- SkyController3:
with an up to date firmware
Result: The controller will trigger all states events and will finally trigger
AllStatesChanged().Expectations:
AllStatesChanged(_policy='wait')
- command message olympe.messages.skyctrl.Common.CurrentDateTime(datetime, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)¶
skyctrl.Common.CurrentDateTime
Set both the date and the time with only one command. If using this command, do not use
CurrentDate()andCurrentTime()commands. This datetime is taken by the remote controller as its own datetime. So medias and other files will be dated from this datetime Please note that you should not send this command if you are using the libARController API as this library is handling the connection process for you.Parameters:
- datetimestring
DateTime with the ISO-8601 complete short format: “%Y%m%dT%H%M%S%z”
- _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_mode
olympe.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:
- SkyController3:
with an up to date firmware
Result: The datetime of the product is set. Then, it will trigger
CurrentDateTimeChanged().Expectations:
CurrentDateTimeChanged(_policy='wait')
- event message olympe.messages.skyctrl.CommonState.AllStatesChanged(_policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)¶
skyctrl.CommonState.AllStatesChanged
All states have been sent by the controller.
Parameters:
- _policy
olympe.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_mode
olympe.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:
- SkyController3:
with an up to date firmware
Triggered: when all states that have been requested by
AllStates()are sent.- _policy
- event message olympe.messages.skyctrl.CommonState.BootId(bootId=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)¶
skyctrl.CommonState.BootId
Controller Boot id. A Boot Id identifies a boot session and does not change between controller power on and power off.
Parameters:
- bootIdstring
Id of the boot
- _policy
olympe.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_mode
olympe.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:
- SkyController3:
with an up to date firmware
- SkyController4:
with an up to date firmware
Triggered: At connection.
- event message olympe.messages.skyctrl.CommonState.CurrentDateTimeChanged(datetime=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)¶
skyctrl.CommonState.CurrentDateTimeChanged
Both date and time changed. Corresponds to the latest datetime set on the drone. Please note that you should not care about this event if you are using the libARController API as this library is handling the connection process for you.
Parameters:
- datetimestring
Datetime with the ISO-8601 complete short format: “%Y%m%dT%H%M%S%z”
- _policy
olympe.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_mode
olympe.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:
- SkyController3:
with an up to date firmware
Triggered: by
CurrentDateTime().
- event message olympe.messages.skyctrl.CommonState.ImminentShutdownChanged(duration=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)¶
skyctrl.CommonState.ImminentShutdownChanged
The skycontroller will shutdown in ‘duration’ ms.
Parameters:
- durationi16
Remaining time (in milliseconds) before the Skycontroller shutdown. ‘-1’ means aborted shutdown (when the power button is released before the end).
- _policy
olympe.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_mode
olympe.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:
- SkyController4:
with an up to date firmware
Triggered: when the user start to press power button