encoder_driver.h
Go to the documentation of this file.
00001 /* *************************************************************
00002    Encoder driver function definitions - by James Nugen
00003    ************************************************************ */
00004    
00005    
00006 #ifdef ARDUINO_ENC_COUNTER
00007   //below can be changed, but should be PORTD pins; 
00008   //otherwise additional changes in the code are required
00009   #define LEFT_ENC_PIN_A PD2  //pin 2
00010   #define LEFT_ENC_PIN_B PD3  //pin 3
00011   
00012   //below can be changed, but should be PORTC pins
00013   #define RIGHT_ENC_PIN_A PC4  //pin A4
00014   #define RIGHT_ENC_PIN_B PC5   //pin A5
00015 #endif
00016    
00017 long readEncoder(int i);
00018 void resetEncoder(int i);
00019 void resetEncoders();
00020 


ros_arduino_firmware
Author(s): Patrick Goebel
autogenerated on Thu Jun 6 2019 21:43:57