Beispiel #1
0
 def makeBytes(self, index):
     self.data = Formatter().beginFrame(
         self.can_id) + Formatter().prepareInt8as1Bytes(
             self.length) + Formatter().prepareInt8as1Bytes(
                 self.speeds[index]) + Formatter().prepareInt8as1Bytes(
                     self.temp[index]) + Formatter().prepareInt16as2Bytes(
                         self.rpm[index]) + Formatter().endFrame()
Beispiel #2
0
 def makeBytes(self, index):
     self.data = Formatter().beginFrame(self.can_id) + Formatter(
     ).prepareInt8as1Bytes(
         self.length) + Formatter().prepareFloat32as4Bytes(
             self.lattitudes[index]) + Formatter().prepareFloat32as4Bytes(
                 self.longitudes[index]) + Formatter().endFrame()
Beispiel #3
0
 def makeBytes(self, index):
     self.data = Formatter().beginFrame(
         self.can_id) + Formatter().prepareInt8as1Bytes(
             self.length) + Formatter().prepareInt32as4Bytes(
                 self.times[index]) + Formatter().prepareInt32as4Bytes(
                     self.fluxCap[index]) + Formatter().endFrame()