class documentation

class tagAutoLevelingParams: (source)

Constructor: tagAutoLevelingParams.unpack(data)

View In Hierarchy

Represents auto-leveling parameters.

Class Method unpack Unpacks a bytes sequence into a tagAutoLevelingParams object.
Method pack Packs the tagAutoLevelingParams object into a bytes sequence.
Class Variable accuracy Undocumented
Class Variable isAutoLeveling Undocumented

Unpacks a bytes sequence into a tagAutoLevelingParams object.

Parameters
data:bytesThe bytes to unpack, expected to be 9 bytes (1 uint8 + 1 double).
Returns
tagAutoLevelingParamsA tagAutoLevelingParams object.
Raises
struct.errorIf the input bytes are not the expected size (9 bytes).
def pack(self) -> bytes: (source)

Packs the tagAutoLevelingParams object into a bytes sequence.

Packs the boolean (as a uint8) and the accuracy (double) into a byte string. Uses little-endian byte order.

Returns
bytesA bytes object representing the packed data (1 byte + 8 bytes = 9 bytes).

Undocumented

isAutoLeveling: bool = (source)

Undocumented