Skyctrl.Common*

command messageolympe.messages.skyctrl.Common.AllStates(_timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))

Skyctrl.Common.AllStates

Request the controller to send all its states.

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

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 messageolympe.messages.skyctrl.Common.CurrentDateTime(datetime, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))

Skyctrl.Common.CurrentDateTime

Set both the date and the time with only one command. If using this command, do not use CurrentDate() and CurrentTime() 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
  • datetime (string) – DateTime with the ISO-8601 complete short format: “%Y%m%dT%H%M%S%z”

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

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 messageolympe.messages.skyctrl.CommonState.AllStatesChanged(_policy='check_wait', _float_tol=(1e-07, 1e-09))

Skyctrl.CommonState.AllStatesChanged

All states have been sent by the controller.

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

Supported by:

SkyController3

with an up to date firmware

Triggered when all states that have been requested by AllStates() are sent.

event messageolympe.messages.skyctrl.CommonState.CurrentDateTimeChanged(datetime=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))

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
  • datetime (string) – Datetime with the ISO-8601 complete short format: “%Y%m%dT%H%M%S%z”

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

Supported by:

SkyController3

with an up to date firmware

Triggered by CurrentDateTime().