Closed clholgat closed 4 weeks ago
The pull request modifies the encA_rising
method in the Encoders
class located in src/ayab/encoders.cpp
. A new condition is added to check the direction of movement, specifically requiring the direction to be Direction_t::Right
before evaluating the hall sensor value for the left sensor. This change updates the logic flow related to sensor readings based on movement direction. Comments in the code have been revised for clarity, but no new methods or significant structural changes were introduced. The encA_falling
method remains unchanged.
File | Change Summary |
---|---|
src/ayab/encoders.cpp | Modified encA_rising method to include a condition checking for direction before evaluating the left hall sensor. Updated comments for clarity. encA_falling method remains unchanged. |
encoders.h
file, which may relate to the Encoders
class in src/ayab/encoders.cpp
, although the specific changes do not directly affect the logic of the encA_rising
method.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
https://github.com/AllYarnsAreBeautiful/ayab-desktop/issues/667
Summary by CodeRabbit
New Features
Documentation