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.h

Revision Date Message Actions
46:df2c2d25c070 2019-07-28 Some minor changes. The overall dead reckoning is working now, but I don't think I did much to fix it. File  Diff  Annotate
43:0e985a58f174 2019-07-27 Changed reckoner to use readings from turnSensor (Gyro) to get its direction vector instead of encoder ticks. File  Diff  Annotate
42:96671b71aac5 2019-07-27 Calibrate L3G using a buffer of 1000 zero-rate readings. Measured a drift of -1.850 degrees over 3 minutes (-0.01 degree per second). File  Diff  Annotate
37:23000a47ed2b 2014-03-06 With a boost 0.2% to handleRight in the Reckoner, this code did very well on the course twice!! Then I ran it the other way and it was more than a foot off :( File  Diff  Annotate
33:58a0ab6e9ad2 2014-03-05 Bunch of stuff. Then reduced drivingSpeed to 400. File  Diff  Annotate
32:83a13b06093c 2014-03-04 getting line sensors to work again; File  Diff  Annotate
28:4374035df5e0 2014-03-01 Discovered that 4 out of the 6 analog inputs on the mbed are severely messed up. Might need to get a new mbed or do digital filtering (a median of three readings out to work). File  Diff  Annotate
24:fc01d9125d3b 2014-02-28 Fixed the problem with LineTracker always thinking the line was visible. 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
13:bba5b3abd13f 2014-02-23 testReckoner routine works great! I can roll my robot around and it always knows what quadrant it is pointing to and knows what quadrant it is in! File  Diff  Annotate