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@43:0e985a58f174, 2019-07-27 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Sat Jul 27 22:52:19 2019 +0000
- Revision:
- 43:0e985a58f174
- Parent:
- 16:8eaa5bc2bdb1
Changed reckoner to use readings from turnSensor (Gyro) to get its direction vector instead of encoder ticks.
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(); |