Skip to content

[FEATURE] Two issues with MagneticSensorPWM #348

@sylque

Description

@sylque

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions