David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
main.h@50:517c0f0e621f, 2015-04-15 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Wed Apr 15 22:53:33 2015 +0000
- Revision:
- 50:517c0f0e621f
- Parent:
- 46:f11cb4f93aac
- Child:
- 52:05a8e919ddb0
got it to detect roughly when it gets back to the center, but then I tried to make it fancier and it stopped working
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DavidEGrayson | 21:c279c6a83671 | 1 | #pragma once |
DavidEGrayson | 21:c279c6a83671 | 2 | |
DavidEGrayson | 21:c279c6a83671 | 3 | #include "reckoner.h" |
DavidEGrayson | 21:c279c6a83671 | 4 | #include "line_tracker.h" |
DavidEGrayson | 37:23000a47ed2b | 5 | #include "logger.h" |
DavidEGrayson | 46:f11cb4f93aac | 6 | #include "turn_sensor.h" |
DavidEGrayson | 21:c279c6a83671 | 7 | |
DavidEGrayson | 28:4374035df5e0 | 8 | void loadCalibration(); |
DavidEGrayson | 28:4374035df5e0 | 9 | |
DavidEGrayson | 21:c279c6a83671 | 10 | void waitForSignalToStart(); |
DavidEGrayson | 39:a5e25fd52ff8 | 11 | void followLineFast(); |
DavidEGrayson | 39:a5e25fd52ff8 | 12 | void updateMotorsToFollowLineFast(); |
DavidEGrayson | 37:23000a47ed2b | 13 | void __attribute__((noreturn)) loggerReportLoop(); |
DavidEGrayson | 21:c279c6a83671 | 14 | |
DavidEGrayson | 28:4374035df5e0 | 15 | void updateMotorsToFollowLine(); |
DavidEGrayson | 21:c279c6a83671 | 16 | void updateReckonerFromEncoders(); |
DavidEGrayson | 46:f11cb4f93aac | 17 | void updateReckoner(TurnSensor &); |
DavidEGrayson | 33:58a0ab6e9ad2 | 18 | void setLeds(bool v1, bool v2, bool v3, bool v4); |
DavidEGrayson | 21:c279c6a83671 | 19 | float determinant(); |
DavidEGrayson | 21:c279c6a83671 | 20 | float dotProduct(); |
DavidEGrayson | 33:58a0ab6e9ad2 | 21 | float magnitude(); |
DavidEGrayson | 37:23000a47ed2b | 22 | void loggerService(); |
DavidEGrayson | 46:f11cb4f93aac | 23 | void waitForSignalToStart(); |
DavidEGrayson | 50:517c0f0e621f | 24 | void followLineSmart(); |
DavidEGrayson | 21:c279c6a83671 | 25 | |
DavidEGrayson | 21:c279c6a83671 | 26 | extern Reckoner reckoner; |
DavidEGrayson | 21:c279c6a83671 | 27 | extern LineTracker lineTracker; |
DavidEGrayson | 50:517c0f0e621f | 28 | extern Logger logger; |
DavidEGrayson | 50:517c0f0e621f | 29 | extern TurnSensor turnSensor; |