changes to allow for deltaT of each packet to work. debugged and displaying nicely
[goodfet] / client / GoodFETMCPCANCommunication.py
index 40983c2..226366e 100644 (file)
@@ -157,7 +157,9 @@ class GoodFETMCPCANCommunication:
             #add the data to list if the pointer was included
             if(data != None and packet != None):
                 #data.append(self.client.packet2parsedstr(packet))
             #add the data to list if the pointer was included
             if(data != None and packet != None):
                 #data.append(self.client.packet2parsedstr(packet))
-                data.put(self.client.packet2parsed(packet))
+                packetParsed = self.client.packet2parsed(packet)
+                packetParsed["time"] =time.time()
+                data.put(packetParsed)
             if(debug == True):
                 #check packet status
                 MCPstatusReg = self.client.MCPrxstatus();
             if(debug == True):
                 #check packet status
                 MCPstatusReg = self.client.MCPrxstatus();