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

Revisions of main.cpp

Revision Date Message Actions
26:7e7c376a7446 2014-02-28 This is my attempt to make it hang on to the line better after finding it. I found a really bad bug in followLineToEnd that might explain all the problems, but I also changed the loadCalibrationAndFindLine function so it doesn't overshoot. File  Diff  Annotate
25:73c2eedb3b91 2014-02-28 Some stuff. I am about to take away the foundLineTimer in an attempt to make it better at finding the line. File  Diff  Annotate
24:fc01d9125d3b 2014-02-28 Fixed the problem with LineTracker always thinking the line was visible. File  Diff  Annotate
23:aae5cbe3b924 2014-02-28 Stuff; File  Diff  Annotate
22:44c032e59ff5 2014-02-28 Fixed the code for calibrating. Added testCalibrate. File  Diff  Annotate
21:c279c6a83671 2014-02-27 Wrote a whole bunch of code that could theoretically allow the robot to compete, but it has not been tested at all yet. File  Diff  Annotate
20:dbec34f0e76b 2014-02-27 Broke up driveHome into two functions. File  Diff  Annotate
19:a11ffc903774 2014-02-25 Got the robot to get back to its home position and stop. File  Diff  Annotate
18:b65fbb795396 2014-02-24 Got the robot to face towards home! File  Diff  Annotate
17:2df9861f53ee 2014-02-24 Created a stub driveHome routine that we need to fill in. File  Diff  Annotate
16:8eaa5bc2bdb1 2014-02-24 Got debounced button pressing to work. File  Diff  Annotate
12:835a4d24ae3b 2014-02-23 Made the Reckoner class and wrote a routine to help test it.; File  Diff  Annotate
10:e4dd36148539 2014-02-22 Successfully tested the encoders, printing out a nice bar graph. File  Diff  Annotate
9:9734347b5756 2014-02-22 Made verything use CamelCase.; File  Diff  Annotate
8:78b1ff957cba 2014-02-22 refactored into many files File  Diff  Annotate
7:85b8b5acfb22 2014-02-21 Setting more PWM registers now, but the call to period_us is still necessary for some reason. File  Diff  Annotate
6:89a39870e23d 2014-02-20 Got high-resolution 20 kHz PWM. File  Diff  Annotate
5:01ad080dc4fa 2014-02-20 Succeeded in getting high resolution PWM. File  Diff  Annotate
4:1b20a11765c8 2014-02-20 Succeeded in generating basic PWM signals with PwmOut. File  Diff  Annotate
3:59c80d4b4bf2 2014-02-20 Done working on encoder stuff for now.; File  Diff  Annotate
2:968338353aef 2014-02-20 Moved the code to enable pull-ups into the app. File  Diff  Annotate
1:d0d9653a4547 2014-02-20 Added pacers. File  Diff  Annotate
0:e77a0edb9878 2014-02-20 Got basics working. See commit for library. File  Diff  Annotate