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
l3g.h
00001 #pragma once 00002 00003 // Returns 0 for success, non-zero for error. 00004 int32_t l3gInit(); 00005 int32_t l3gReadReg(char reg); 00006 int32_t l3gWriteReg(char reg, char value); 00007 int32_t l3gZRead(); 00008 int32_t l3gZAvailable(); 00009 00010 // Takes one reading and record it for the purposes of zero-rate calibrations. 00011 // Returns the reading just in case you want it for something. 00012 int32_t l3gCalibrate(); 00013 00014 bool l3gCalibrateDone(); 00015 00016 void l3gCalibrateReset(); 00017 00018 int32_t l3gZReadCalibrated();
Generated on Sun Jul 17 2022 15:45:15 by 1.7.2