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

main.h

Committer:
DavidEGrayson
Date:
2014-02-28
Revision:
24:fc01d9125d3b
Parent:
22:44c032e59ff5
Child:
28:4374035df5e0

File content as of revision 24:fc01d9125d3b:

#pragma once

#include "reckoner.h"
#include "line_tracker.h"

void waitForSignalToStart();
void findLineAndCalibrate(); void loadCalibrationAndFindLine();  // two alternatives
void turnRightToFindLine();
void followLineToEnd();
void driveHomeAlmost();
void finalSettleIn();

void updateReckonerFromEncoders();
float determinant();
float dotProduct();
bool calibrationLooksGood();

extern Reckoner reckoner;
extern LineTracker lineTracker;