Skyctrl.CoPiloting*#

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

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) –

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

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) –

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