def StopCommand(): from ControlDataValue import ControlDataValue dataValue = ControlDataValue() dataValue.controllerCommand = 2000 # STOP dataValue.solverMode = 1 # STABLILIZATION dataValue.CRC = 0 temp = ControlData(dataValue) dataValue.CRC = temp.computeCrc() return ControlData(dataValue)
def SomeValidControlCommand(): from ControlDataValue import ControlDataValue dataValue = ControlDataValue() dataValue.throttle = 0.4 dataValue.controllerCommand = 1000 # STOP dataValue.solverMode = 1 # STABLILIZATION dataValue.CRC = 0 temp = ControlData(dataValue) dataValue.CRC = temp.computeCrc() return ControlData(dataValue)