RC Transport feature#

event messageolympe.messages.rc_transport.capabilities(transports=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

rc_transport.capabilities

Capabilities

Parameters
  • transports (BitfieldOf(olympe.enums.rc_transport.transport_layer, u8)) – Supported transport layers.

  • _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 rc_transport.capabilities

Triggered At connection only.

command messageolympe.messages.rc_transport.set_transport(transport, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09))#

rc_transport.set_transport

Configures transport layer.

Parameters
  • transport (olympe.enums.rc_transport.transport_layer) – Requested transport_layer.

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

Unsupported message

Todo

Remove unsupported message rc_transport.set_transport

Result: transport() event with the new transport layer.

Expectations: transport(transport=self.transport, _policy='wait')

event messageolympe.messages.rc_transport.transport(transport=None, _policy='check_wait', _float_tol=(1e-07, 1e-09))#

rc_transport.transport

Current transport layer

Parameters
  • transport (olympe.enums.rc_transport.transport_layer) – Current transport layer used by the skycontroller

  • _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 rc_transport.transport

Triggered At connection; on changes by set_transport()

enumolympe.enums.rc_transport.list_flags#

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages

First

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (0)

Last

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (1)

Empty

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (2)

Remove

Arsdk built-in “list_flags” enum that is used to in “LIST_ITEM” event messages (3)

enumolympe.enums.rc_transport.transport_layer#

Communication transport layer.

wifi

Transport is over wifi 802.11 (0)

microhard

Transport is over microhard (1)