mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-04 03:34:08 +05:30
Fixed #elif statement for ARDUINO_ENC_COUNTER
This commit is contained in:
parent
5a4affcfba
commit
56686b53d2
@ -45,8 +45,7 @@
|
||||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*********************************************************************/
|
||||
|
||||
//#define USE_BASE // Enable the base controller code
|
||||
#undef USE_BASE // Disable the base controller code
|
||||
//#define USE_BASE // Enable/disable the base controller code
|
||||
|
||||
/* Define the motor controller and encoder library you are using */
|
||||
#ifdef USE_BASE
|
||||
|
@ -27,7 +27,7 @@
|
||||
if (i == LEFT) return encoders.YAxisReset();
|
||||
else return encoders.XAxisReset();
|
||||
}
|
||||
#elif ARDUINO_ENC_COUNTER
|
||||
#elif defined(ARDUINO_ENC_COUNTER)
|
||||
volatile long left_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
|
||||
|
Loading…
x
Reference in New Issue
Block a user