class documentation

class tagPTPJumpParams: (source)

Constructor: tagPTPJumpParams.unpack(data)

View In Hierarchy

Represents PTP jump parameters with jump height and z limit.

Class Method unpack Unpacks a bytes sequence into a tagPTPJumpParams object.
Method pack Packs the tagPTPJumpParams object into a bytes sequence.
Class Variable jumpHeight Undocumented
Class Variable zLimit Undocumented
def unpack(cls, data: bytes) -> tagPTPJumpParams: (source)

Unpacks a bytes sequence into a tagPTPJumpParams object.

Parameters
data:bytesThe bytes to unpack, expected to be 16 bytes (2 doubles).
Returns
tagPTPJumpParamsA tagPTPJumpParams object.
Raises
struct.errorIf the input bytes are not the expected size (16 bytes).
def pack(self) -> bytes: (source)

Packs the tagPTPJumpParams object into a bytes sequence.

Packs the jumpHeight and zLimit (floats) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (16 bytes).
jumpHeight: float = (source)

Undocumented

Undocumented