class documentation
Represents common JOG parameters with velocity and acceleration ratios.
Class Method | unpack |
Unpacks a bytes sequence into a tagJOGCommonParams object. |
Method | pack |
Packs the tagJOGCommonParams object into a bytes sequence. |
Class Variable | acceleration |
Undocumented |
Class Variable | velocity |
Undocumented |
Unpacks a bytes sequence into a tagJOGCommonParams object.
Parameters | |
data:bytes | The bytes to unpack, expected to be 16 bytes (2 doubles). |
Returns | |
tagJOGCommonParams | A tagJOGCommonParams object. |
Raises | |
struct.error | If the input bytes are not the expected size (16 bytes). |
Packs the tagJOGCommonParams object into a bytes sequence.
Packs the velocityRatio and accelerationRatio (floats) into a byte string. Uses little-endian byte order.
Returns | |
bytes | A bytes object representing the packed data (16 bytes). |