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
Diff: encoders.h
- Revision:
- 8:78b1ff957cba
- Child:
- 9:9734347b5756
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/encoders.h Sat Feb 22 02:23:21 2014 +0000 @@ -0,0 +1,11 @@ +#pragma once + +#include <PololuEncoder.h> + +#define ENCODER1 0x00 +#define ENCODER2 0x01 + +extern PololuEncoderBuffer encoderBuffer; +extern PololuEncoder encoder1, encoder2; + +void encoders_init(); \ No newline at end of file