Railway Challenge / Mbed 2 deprecated challenge

Dependencies:   mbed millis

Files at this revision

API Documentation at this revision

Comitter:
jamesmcildowietfl
Date:
Fri Apr 22 14:25:30 2022 +0000
Parent:
11:fcf00823f24a
Child:
13:a9793222af20
Commit message:
Updated the number of "magnets" for the hall effect sensor

Changed in this revision

dashboard.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/dashboard.cpp	Fri Apr 22 14:06:49 2022 +0000
+++ b/dashboard.cpp	Fri Apr 22 14:25:30 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;