Railway Challenge / Mbed 2 deprecated challenge-ChaiUpdated

Dependencies:   mbed millis

Files at this revision

API Documentation at this revision

Comitter:
jamesmcildowietfl
Date:
Tue May 17 10:51:36 2022 +0000
Parent:
21:0cc8e3ee53f6
Child:
23:c25af9a7db8d
Commit message:
Reverted to 8 postitions on tacho ; ;

Changed in this revision

dashboard.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/dashboard.cpp	Tue May 17 10:49:37 2022 +0000
+++ b/dashboard.cpp	Tue May 17 10:51:36 2022 +0000
@@ -7,7 +7,7 @@
     _hallSensor.rise(this, &Dashboard::tachoInterrupt);           // Register everytime hall sensor is detected
     tachoTimer.start();                         // Timer for counting time between hall sensor triggers
     
-    numberOfMagnets = 1;    // How many magnets on the wheels
+    numberOfMagnets = 8;    // How many magnets on the wheels
     
     currentSpeed = 0.00f;
     passedTime_ms = 0.00f;