Skyctrl.SkyControllerState#

event message olympe.messages.skyctrl.SkyControllerState.AttitudeChanged(q0=None, q1=None, q2=None, q3=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

skyctrl.SkyControllerState.AttitudeChanged

SkyController Attitude in north-east-down (NED) coordinate system. Attitude is provided as a quaternion.

Parameters:
  • q0 (float) – SkyController Attitude q0 (quaternion scalar part)

  • q1 (float) – SkyController Attitude q1 (quaternion vector part)

  • q2 (float) – SkyController Attitude q2 (quaternion vector part)

  • q3 (float) – SkyController Attitude q3 (quaternion vector part)

  • _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 the SkyController attitude changes.

event message olympe.messages.skyctrl.SkyControllerState.BatteryChanged(percent=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

skyctrl.SkyControllerState.BatteryChanged

The battery percentage has changed.

Parameters:
  • percent (u8) – Controller battery: from 0 (empty) to 100 (full charge). Value of 255 when charging.

  • _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 the battery level changes.

event message olympe.messages.skyctrl.SkyControllerState.BatteryState(state=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

skyctrl.SkyControllerState.BatteryState

The state of the controller battery

Parameters:
  • state (olympe.enums.skyctrl.SkyControllerState.BatteryState_State) –

  • _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 the controller battery state has changed.

event message olympe.messages.skyctrl.SkyControllerState.GpsFixChanged(fixed=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

skyctrl.SkyControllerState.GpsFixChanged

The SkyController GPS has gained or lost the fix. If the fix is lost, thent the GpsPositionChanged() event will contain invalid values for the position.

Parameters:
  • fixed (u8) – SkyController fixed

  • _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 skyctrl.SkyControllerState.GpsFixChanged

Triggered when the GPS accuracy goes under/over a certain level.

event message olympe.messages.skyctrl.SkyControllerState.GpsPositionChanged(latitude=None, longitude=None, altitude=None, heading=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

skyctrl.SkyControllerState.GpsPositionChanged

The SkyController position or heading values changed. Some of the values can be invalid and should be ignored.

Parameters:
  • latitude (double) – SkyController latitude (500. if not available)

  • longitude (double) – SkyController longiture (500. if not available)

  • altitude (double) – Altitude (in meters) above sea level. Only meaningful if latitude and longiture are available

  • heading (float) – SkyController heading relative to magnetic north (500.f if not available)

  • _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 skyctrl.SkyControllerState.GpsPositionChanged

Triggered each time the position or heading of the SkyController is updated, or when a data becomes (un)available.

enum olympe.enums.skyctrl.SkyControllerState.BatteryState_State#

Current battery state

charging:

Battery is charging (0)

charged:

Battery is fully charged (1)

discharging:

Battery is discharging (normal case when on and unplugged) (2)

discharging_low:

Battery is low (Can still work for a few minutes) (3)

discharging_critical:

Battery is critically low (the product will automatically shut down if not plugged) (4)