![](/media/cache/profiles/ebb9a55061af33b68d38f7ce72e4460f.50x50_q85.jpg)
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: l3g.h
- Revision:
- 40:6fa672be85ec
- Child:
- 42:96671b71aac5
diff -r b19dfc5d4d4b -r 6fa672be85ec l3g.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/l3g.h Thu Jul 25 02:53:34 2019 +0000 @@ -0,0 +1,8 @@ +#pragma once + +// Returns 0 for success, non-zero for error. +int32_t l3gInit(); +int32_t l3gReadReg(char reg); +int32_t l3gWriteReg(char reg, char value); +int32_t l3gZRead(); +int32_t l3gZAvailable(); \ No newline at end of file