class documentation

class tagPTPJump2Params: (source)

Constructor: tagPTPJump2Params.unpack(data)

View In Hierarchy

Represents PTP jump parameters with start/end jump heights and z limit.

Class Method unpack Unpacks a bytes sequence into a tagPTPJump2Params object.
Method pack Packs the tagPTPJump2Params object into a bytes sequence.
Class Variable endJumpHeight Undocumented
Class Variable startJumpHeight Undocumented
Class Variable zLimit Undocumented

Unpacks a bytes sequence into a tagPTPJump2Params object.

Parameters
data:bytesThe bytes to unpack, expected to be 24 bytes (3 doubles).
Returns
tagPTPJump2ParamsA tagPTPJump2Params object.
Raises
struct.errorIf the input bytes are not the expected size (24 bytes).
def pack(self) -> bytes: (source)

Packs the tagPTPJump2Params object into a bytes sequence.

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

Returns
bytesA bytes object representing the packed data (24 bytes).
endJumpHeight: float = (source)

Undocumented

startJumpHeight: float = (source)

Undocumented

Undocumented