added flexible packet sending function, multiPacketSpit
[goodfet] / client / FordExperiments.py
index 326cf2e..ad1b8b9 100644 (file)
@@ -12,10 +12,10 @@ import Queue
 import math
 
 tT = time
-class FordExperiments(GoodFETMCPCANCommunication):
+class FordExperiments(GoodFETMCPCANCommunication, dataLocation):
     
     def __init__(self):
-        GoodFETMCPCANCommunication.__init__(self)
+        GoodFETMCPCANCommunication.__init__(self, dataLocation)
         #super(FordExperiments,self).__init__(self) #initialize chip
         self.freq = 500;
 
@@ -115,7 +115,7 @@ class FordExperiments(GoodFETMCPCANCommunication):
         while( (time.time()-recieveTime) < runTime):
             #care about db3 or packet[8] that we want to count at the rate that it is
             dT = time.time()-tpast
-            packetValue += 1
+            packetValue += 10
             pV = packetValue%255
             #temp = ((packetValue+1))%2
             #if( temp == 1):