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

Dependencies:   GeneralDebouncer Pacer PololuEncoder mbed

Fork of DeadReckoning by David Grayson

main.cpp

Committer:
DavidEGrayson
Date:
2014-02-22
Revision:
10:e4dd36148539
Parent:
9:9734347b5756
Child:
12:835a4d24ae3b

File content as of revision 10:e4dd36148539:

#include <mbed.h>
#include <Pacer.h>

#include "motors.h"
#include "encoders.h"
#include "leds.h"
#include "pc_serial.h"
#include "test.h"

int __attribute__((noreturn)) main()
{
    pc.baud(115200);
    
    // Enable pull-ups on encoder pins and give them a chance to settle.
    encodersInit();
    motorsInit();

    // Test routines
    //testMotors();
    //testEncoders();
    testLineSensors();

    while(1)
    {

    }
}