Skyctrl.CoPiloting*

command message olympe.messages.skyctrl.CoPiloting.setPilotingSource(source, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

skyctrl.CoPiloting.setPilotingSource

Change who is piloting the drone. By default, the SkyController is the source of piloting commands, and any connected application (i.e. FreeFlight) can not send [piloting commands](PCMD()) commands directly to the drone. When the piloting source is set to Controller, the SkyController will forward the controller commands to the drone, and won’t send any commands itself. The piloting source is automatically reset to SkyController when the controller is disconnected.

Parameters:

source : olympe.enums.skyctrl.CoPiloting.SetPilotingSource_Source

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

SkyController3:

with an up to date firmware

Result: The SkyController will sent a pilotingSource() event.

Expectations: pilotingSource(source=self.source, _policy='wait')

enum olympe.enums.skyctrl.CoPiloting.SetPilotingSource_Source

The new piloting source

Enum aliases:

  • olympe.enums.skyctrl.SetPilotingSource_Source

  • olympe.enums.skyctrl.PilotingSource_Source

SkyController:

Use the SkyController joysticks (0)

Controller:

Use the Tablet (or smartphone, or whatever) controls Disables the SkyController joysticks (1)

event message olympe.messages.skyctrl.CoPilotingState.pilotingSource(source=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

skyctrl.CoPilotingState.pilotingSource

Define who is piloting the drone. The piloting source is reset to SkyController when the controller disconnects.

Parameters:

source : olympe.enums.skyctrl.CoPilotingState.PilotingSource_Source

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

SkyController3:

with an up to date firmware

Triggered: by a setPilotingSource() command

enum olympe.enums.skyctrl.CoPilotingState.PilotingSource_Source

The source

Enum aliases:

  • olympe.enums.skyctrl.SetPilotingSource_Source

  • olympe.enums.skyctrl.PilotingSource_Source

SkyController:

Use the SkyController joysticks (0)

Controller:

Use the Tablet (or smartphone, or whatever) controls Disables the SkyController joysticks (1)