You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/MagneticSensorAnalog.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
/** MagneticSensorAnalog(uint8_t _pinAnalog, int _min, int _max)
4
4
* @param _pinAnalog the pin that is reading the pwm from magnetic sensor
5
5
* @param _min_raw_count the smallest expected reading. Whilst you might expect it to be 0 it is often ~15. Getting this wrong results in a small click once per revolution
6
-
* @param _max_raw_count the largest value read. whilst you might expect it to be 2^10 = 1023 it is often ~ 1020
6
+
* @param _max_raw_count the largest value read. whilst you might expect it to be 2^10 = 1023 it is often ~ 1020. Note: For ESP32 (with 12bit ADC the value will be nearer 4096)
7
7
*/
8
8
MagneticSensorAnalog::MagneticSensorAnalog(uint8_t _pinAnalog, int _min_raw_count, int _max_raw_count){
9
9
@@ -106,4 +106,4 @@ int MagneticSensorAnalog::needsAbsoluteZeroSearch(){
106
106
// function reading the raw counter of the magnetic sensor
0 commit comments