David's line following code from the LVBots competition, 2015.
Dependencies: GeneralDebouncer Pacer PololuEncoder mbed
Fork of DeadReckoning by
main.h@52:05a8e919ddb0, 2015-04-15 (annotated)
- Committer:
- DavidEGrayson
- Date:
- Wed Apr 15 23:56:52 2015 +0000
- Revision:
- 52:05a8e919ddb0
- Parent:
- 50:517c0f0e621f
It learned the course, holy shit!
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 | 52:05a8e919ddb0 | 12 | |
DavidEGrayson | 52:05a8e919ddb0 | 13 | void updateMotorsToFollowLineFast(int16_t drivingSpeed); |
DavidEGrayson | 52:05a8e919ddb0 | 14 | void updateMotorsToFollowLineSlow(); |
DavidEGrayson | 52:05a8e919ddb0 | 15 | |
DavidEGrayson | 37:23000a47ed2b | 16 | void __attribute__((noreturn)) loggerReportLoop(); |
DavidEGrayson | 21:c279c6a83671 | 17 | |
DavidEGrayson | 21:c279c6a83671 | 18 | void updateReckonerFromEncoders(); |
DavidEGrayson | 46:f11cb4f93aac | 19 | void updateReckoner(TurnSensor &); |
DavidEGrayson | 33:58a0ab6e9ad2 | 20 | void setLeds(bool v1, bool v2, bool v3, bool v4); |
DavidEGrayson | 21:c279c6a83671 | 21 | float determinant(); |
DavidEGrayson | 21:c279c6a83671 | 22 | float dotProduct(); |
DavidEGrayson | 33:58a0ab6e9ad2 | 23 | float magnitude(); |
DavidEGrayson | 37:23000a47ed2b | 24 | void loggerService(); |
DavidEGrayson | 46:f11cb4f93aac | 25 | void waitForSignalToStart(); |
DavidEGrayson | 50:517c0f0e621f | 26 | void followLineSmart(); |
DavidEGrayson | 21:c279c6a83671 | 27 | |
DavidEGrayson | 21:c279c6a83671 | 28 | extern Reckoner reckoner; |
DavidEGrayson | 21:c279c6a83671 | 29 | extern LineTracker lineTracker; |
DavidEGrayson | 50:517c0f0e621f | 30 | extern Logger logger; |
DavidEGrayson | 50:517c0f0e621f | 31 | extern TurnSensor turnSensor; |