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
buttons.h@37:23000a47ed2b, 2014-03-06 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Thu Mar 06 05:11:46 2014 +0000
- Revision:
- 37:23000a47ed2b
- Parent:
- 16:8eaa5bc2bdb1
With a boost 0.2% to handleRight in the Reckoner, this code did very well on the course twice!! Then I ran it the other way and it was more than a foot off :(
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidEGrayson | 11:bd14d512340a | 1 | #pragma once |
DavidEGrayson | 11:bd14d512340a | 2 | |
DavidEGrayson | 11:bd14d512340a | 3 | void buttonsInit(); |
DavidEGrayson | 11:bd14d512340a | 4 | |
DavidEGrayson | 16:8eaa5bc2bdb1 | 5 | bool button1IsPressed(); |
DavidEGrayson | 16:8eaa5bc2bdb1 | 6 | |
DavidEGrayson | 16:8eaa5bc2bdb1 | 7 | void button1Monitor(); |
DavidEGrayson | 16:8eaa5bc2bdb1 | 8 | |
DavidEGrayson | 16:8eaa5bc2bdb1 | 9 | bool button1DefinitelyPressed(); |
DavidEGrayson | 16:8eaa5bc2bdb1 | 10 | bool button1DefinitelyReleased(); |