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: Sensor/HallSensor.cpp
- Revision:
- 1:d7a26e14bc4d
- Parent:
- 0:c88a81d07287
--- a/Sensor/HallSensor.cpp Wed Nov 06 01:17:46 2019 +0000
+++ b/Sensor/HallSensor.cpp Tue Nov 10 13:35:03 2020 +0000
@@ -1,7 +1,7 @@
#include "HallSensor.h"
-#define RPM 23400.0
+#define REF 23400.0
#define MIN 60.0
-#define SEC_PERIOD (1.0 / (RPM*2 / MIN ))
+#define SEC_PERIOD (1.0 / (2.0 * REF / MIN ))
HallSensor::HallSensor (PinName a) : m_hallSensor (a,PullUp)
{