Issue 1
Unless I'm missing something, the getRawCount() method should be made public, otherwise it is not possible, in client code, to measure the _min and _max values required by MagneticSensorPWM(_pinPWM, _min, _max).
Issue 2
Line 88 of MagneticSensorPWM.cpp reads as follow:
pulse_length_us = pulseIn(pinPWM, HIGH, 1200); // 1200us timeout, should this be configurable?
Yes, I confirm the 1200us timeout should be configurable: in my case, I needed 1400us to get my AS4850A to work.
Issue 1
Unless I'm missing something, the
getRawCount()method should be made public, otherwise it is not possible, in client code, to measure the_minand_maxvalues required byMagneticSensorPWM(_pinPWM, _min, _max).Issue 2
Line 88 of MagneticSensorPWM.cpp reads as follow:
Yes, I confirm the 1200us timeout should be configurable: in my case, I needed 1400us to get my AS4850A to work.