Control project for the Lift-arm. Works with ROS Melodic
Dependencies: mbed Servo ros_lib_melodic ULN2003_StepperDriver Async_4pin_Stepper
Diff: src/encoder.h
- Revision:
- 3:4b6080e86761
- Parent:
- 1:7c355adbc977
--- a/src/encoder.h Thu May 27 19:26:21 2021 +0000 +++ b/src/encoder.h Mon May 31 16:44:26 2021 +0000 @@ -16,14 +16,13 @@ #include "mbed.h" + #define PREV_MASK 0x1 //Mask for the previous state in determining direction //of rotation. #define CURR_MASK 0x2 //Mask for the current state in determining direction //of rotation. #define INVALID 0x3 //XORing two states where both bits have changed. - - class encoder { private: