mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 19:24:09 +05:30
Fixed #elif statement for ARDUINO_ENC_COUNTER
This commit is contained in:
parent
9c272e8244
commit
646b3234aa
@ -27,7 +27,7 @@
|
|||||||
if (i == LEFT) return encoders.YAxisReset();
|
if (i == LEFT) return encoders.YAxisReset();
|
||||||
else return encoders.XAxisReset();
|
else return encoders.XAxisReset();
|
||||||
}
|
}
|
||||||
#elif ARDUINO_ENC_COUNTER
|
#elif defined(ARDUINO_ENC_COUNTER)
|
||||||
volatile long left_enc_pos = 0L;
|
volatile long left_enc_pos = 0L;
|
||||||
volatile long right_enc_pos = 0L;
|
volatile long right_enc_pos = 0L;
|
||||||
static const int8_t ENC_STATES [] = {0,1,-1,0,-1,0,0,1,1,0,0,-1,0,-1,1,0}; //encoder lookup table
|
static const int8_t ENC_STATES [] = {0,1,-1,0,-1,0,0,1,1,0,0,-1,0,-1,1,0}; //encoder lookup table
|
||||||
|
Loading…
x
Reference in New Issue
Block a user