Wheel control software for satellite microcontroller running the motors on the Karbor
Dependencies: mbed ros_lib_melodic
Diff: src/encoder.h
- Revision:
- 3:4b6080e86761
- Parent:
- 1:7c355adbc977
- Child:
- 5:44b2454a5eea
--- 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: