Rachel Ireland-Jones / Mbed OS FinalYear0
Revision:
31:19bb96d3113e
Parent:
30:9aeca82187f5
Child:
32:b7a08eb0408d
--- a/main.cpp	Thu Dec 19 15:38:22 2019 +0000
+++ b/main.cpp	Fri Jan 03 16:36:19 2020 +0000
@@ -54,7 +54,7 @@
         case 1:
             if(HEA1 == NOPULSE) {
                 HallState = 0; //Change state
-                n++; //Add 1 to the number of pulses counted (resets after 9 pulsees)
+                n++; //Add 1 to the number of pulses counted (resets after 4 pulsees)
                 pulseA++; //Add 1 to the number of pulses counted for the duration
                 travA = ((176/20.8)/3)*pulseA; //Gives the distance travelled by wheel A in mm
             }
@@ -89,7 +89,7 @@
         case 1:
             if(HEB1 == NOPULSE) {
                 HallStateB = 0; //Change state
-                nB++; //Add 1 to the number of pulses counted (resets after 9 pulsees)
+                nB++; //Add 1 to the number of pulses counted (resets after 4 pulsees)
                 pulseB++; //Add 1 to the number of pulses counted for the duration
                 travB = ((176/20.8)/3)*pulseB; //Gives the distance travelled by wheel B in mm
             }