debugged the demonstration methods
authorchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 28 Feb 2013 20:06:32 +0000 (20:06 +0000)
committerchrishoder <chrishoder@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Thu, 28 Feb 2013 20:06:32 +0000 (20:06 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@1553 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

client/FordExperiments.py

index 15e59b6..5c80588 100644 (file)
@@ -935,13 +935,13 @@ class FordExperiments(experiments):
 #sample width: 2 --> 2 bytes per sample
 #framerate: 44100 
 
-       def engineDiagnostic(self, data):
+    def engineDiagnostic(self, data):
        
-               self.addFilter([513, 513, 513,513])
+        self.addFilter([513, 513, 513,513])
                
-               startTime = tT.time()
+        startTime = tT.time()
         while((tT.time() - startTime ) < 15):
-                       packet = None;
+                packet = None;
         
                        #catch a packet to decode
                while (packet == None):
@@ -950,7 +950,7 @@ class FordExperiments(experiments):
                rpm = 64.5 * ord(packet[5]) - 61.88
                mph = 1.617 * ord(packet[9]) - 63.5
 
-               data.put("Engine RPM: %d Current Speed: %d mph"%(rpm, mph))
+               data.put("Engine RPM: %d Current Speed: %d mph"%(rpm, mph))
                time.sleep(.5)