Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: dashboard.cpp
- Revision:
- 18:d28d458824d4
- Parent:
- 12:2ac4b0df4007
- Child:
- 22:4cf934f6e989
--- a/dashboard.cpp Wed May 04 13:52:22 2022 +0000
+++ b/dashboard.cpp Tue May 17 10:18:39 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 = 8; // How many magnets on the wheels
+ numberOfMagnets = 1; // How many magnets on the wheels
currentSpeed = 0.00f;
passedTime_ms = 0.00f;