David's line following code from the LVBots competition, 2015.

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

Committer:
DavidEGrayson
Date:
Tue Apr 14 01:06:41 2015 +0000
Revision:
39:a5e25fd52ff8
Parent:
37:23000a47ed2b
Child:
46:f11cb4f93aac
Made it follow the line a little faster (600 out of 1200).  Need a derivative term though, because it oscillates back and forth on the straight part.

Who changed what in which revision?

UserRevisionLine numberNew 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 21:c279c6a83671 6
DavidEGrayson 28:4374035df5e0 7 void loadCalibration();
DavidEGrayson 28:4374035df5e0 8
DavidEGrayson 21:c279c6a83671 9 void waitForSignalToStart();
DavidEGrayson 39:a5e25fd52ff8 10 void followLineFast();
DavidEGrayson 39:a5e25fd52ff8 11 void updateMotorsToFollowLineFast();
DavidEGrayson 37:23000a47ed2b 12 void __attribute__((noreturn)) loggerReportLoop();
DavidEGrayson 21:c279c6a83671 13
DavidEGrayson 28:4374035df5e0 14 void updateMotorsToFollowLine();
DavidEGrayson 21:c279c6a83671 15 void updateReckonerFromEncoders();
DavidEGrayson 33:58a0ab6e9ad2 16 void setLeds(bool v1, bool v2, bool v3, bool v4);
DavidEGrayson 21:c279c6a83671 17 float determinant();
DavidEGrayson 21:c279c6a83671 18 float dotProduct();
DavidEGrayson 33:58a0ab6e9ad2 19 float magnitude();
DavidEGrayson 37:23000a47ed2b 20 void loggerService();
DavidEGrayson 21:c279c6a83671 21
DavidEGrayson 21:c279c6a83671 22 extern Reckoner reckoner;
DavidEGrayson 21:c279c6a83671 23 extern LineTracker lineTracker;
DavidEGrayson 37:23000a47ed2b 24 extern Logger logger;