David's dead reckoning code for the LVBots competition on March 6th. Uses the mbed LPC1768, DRV8835, QTR-3RC, and two DC motors with encoders.

Dependencies:   PololuEncoder Pacer mbed GeneralDebouncer

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers encoders.h Source File

encoders.h

00001 #pragma once
00002 
00003 #include <PololuEncoder.h>
00004 
00005 #define ENCODER_LEFT 0x00
00006 #define ENCODER_RIGHT 0x01
00007 
00008 extern PololuEncoderBuffer encoderBuffer;
00009 extern PololuEncoder encoderLeft, encoderRight;
00010 
00011 void encodersInit();