Пример #1
0
 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)
Пример #2
0
 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)
Пример #3
0
 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)
Пример #4
0
 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)