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

Committer:
DavidEGrayson
Date:
Thu Feb 27 19:46:35 2014 +0000
Revision:
20:dbec34f0e76b
Parent:
19:a11ffc903774
Child:
21:c279c6a83671
Broke up driveHome into two functions.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
DavidEGrayson 9:9734347b5756 1 #pragma once
DavidEGrayson 9:9734347b5756 2
DavidEGrayson 10:e4dd36148539 3 void __attribute__((noreturn)) testEncoders();
DavidEGrayson 10:e4dd36148539 4 void __attribute__((noreturn)) testMotors();
DavidEGrayson 12:835a4d24ae3b 5 void __attribute__((noreturn)) testLineSensors();
DavidEGrayson 12:835a4d24ae3b 6 void __attribute__((noreturn)) testReckoner();
DavidEGrayson 16:8eaa5bc2bdb1 7 void __attribute__((noreturn)) testButtons();
DavidEGrayson 16:8eaa5bc2bdb1 8 void __attribute__((noreturn)) testDriveHome();
DavidEGrayson 20:dbec34f0e76b 9 void __attribute__((noreturn)) testFinalSettleIn();
DavidEGrayson 13:bba5b3abd13f 10
DavidEGrayson 13:bba5b3abd13f 11 // These are actually defined in main.h:
DavidEGrayson 13:bba5b3abd13f 12
DavidEGrayson 17:2df9861f53ee 13 void updateReckonerFromEncoders();
DavidEGrayson 20:dbec34f0e76b 14
DavidEGrayson 20:dbec34f0e76b 15 void driveHome();
DavidEGrayson 20:dbec34f0e76b 16 void driveHomeAlmost();
DavidEGrayson 20:dbec34f0e76b 17 void finalSettleIn();
DavidEGrayson 20:dbec34f0e76b 18
DavidEGrayson 20:dbec34f0e76b 19 float determinant();
DavidEGrayson 20:dbec34f0e76b 20 float dotProduct();