Esempio n. 1
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<f', self._rWheel) \
            + struct.pack('<f', self._width) \
            + struct.pack('<i', self._motorL) \
            + struct.pack('<i', self._motorR) \
            + struct.pack('<f', self._slip)
Esempio n. 2
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<f', self._rWheel) \
            + struct.pack('<f', self._width) \
            + struct.pack('<i', self._motorL) \
            + struct.pack('<i', self._motorR) \
            + struct.pack('<f', self._slip)
Esempio n. 3
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self)\
            + struct.pack('<i', self._port)\
            + struct.pack('<f', self._min)\
            + struct.pack('<f', self._max)\
            + struct.pack('<f', self._a)\
            + struct.pack('<f', self._b)\
            + struct.pack('<f', self._initPos)
Esempio n. 4
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self)\
            + struct.pack('<i', self._port)\
            + struct.pack('<f', self._min)\
            + struct.pack('<f', self._max)\
            + struct.pack('<f', self._a)\
            + struct.pack('<f', self._b)\
            + struct.pack('<f', self._initPos)
 def dataTosend(self):
     return (
         ParamBuildResponse.dataTosend(self)
         + struct.pack("<f", self._rWheel)
         + struct.pack("<f", self._width)
         + struct.pack("<i", self._motorFL)
         + struct.pack("<i", self._motorFR)
         + struct.pack("<i", self._motorBL)
         + struct.pack("<i", self._motorBR)
         + struct.pack("<f", self._slip)
     )
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<I', self._LPFHz) \
            + struct.pack('<f', self._LPFAlpha) \
            + struct.pack('<I', self._driverAddress) \
            + struct.pack('<I', self._channel) \
            + struct.pack('<I', self._PIDHz) \
            + struct.pack('<f', self._KP) \
            + struct.pack('<f', self._KI) \
            + struct.pack('<f', self._KD) \
            + struct.pack('<f', self._maxSpeed) \
            + struct.pack('<I', self._CPR) \
            + struct.pack('<I', self._timeout) \
            + struct.pack('<I', self._encoderPinA) \
            + struct.pack('<I', self._encoderPinB) \
            + struct.pack('<I', self._motorType) \
            + struct.pack('<i', self._motorDirection) \
            + struct.pack('<i', self._motorDirectionE) \
            + struct.pack('<f', self._limit)
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<I', self._LPFHz) \
            + struct.pack('<f', self._LPFAlpha) \
            + struct.pack('<I', self._driverAddress) \
            + struct.pack('<I', self._channel) \
            + struct.pack('<I', self._PIDHz) \
            + struct.pack('<f', self._KP) \
            + struct.pack('<f', self._KI) \
            + struct.pack('<f', self._KD) \
            + struct.pack('<f', self._maxSpeed) \
            + struct.pack('<I', self._CPR) \
            + struct.pack('<I', self._timeout) \
            + struct.pack('<I', self._encoderPinA) \
            + struct.pack('<I', self._encoderPinB) \
            + struct.pack('<I', self._motorType) \
            + struct.pack('<i', self._motorDirection) \
            + struct.pack('<i', self._motorDirectionE) \
            + struct.pack('<f', self._limit)
Esempio n. 8
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) + struct.pack('<i', self._port)
Esempio n. 9
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self)\
            + struct.pack('<f', self._camp) \
            + struct.pack('<H', self._fusionHz)
Esempio n. 10
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<I', self._address) \
            + struct.pack('<I', self._channel) \
            + struct.pack('<I', self._timeout) \
            + struct.pack('<i', self._max)
Esempio n. 11
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) + struct.pack(
         '<i', self._baudrate)
Esempio n. 12
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<f', self._voltageDividerRatio)
Esempio n. 13
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) + struct.pack('<i', self._portNum)
Esempio n. 14
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self)\
            + struct.pack('<f', self._camp) \
            + struct.pack('<H', self._fusionHz)\
            + struct.pack('<?', self._enableFuseGyro)
Esempio n. 15
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<f', self._voltageDividerRatio)
Esempio n. 16
0
 def dataTosend(self):
     return ParamBuildResponse.dataTosend(self) \
            + struct.pack('<B', self._listenToPin) \
            + struct.pack('<B', self._status)