Updated version of RenBuggy Servo that can accept instructions based on time or distance.

Dependencies:   PinDetect mbed

Fork of RenBuggyServo by Renishaw

main.cpp

Committer:
ELloyd
Date:
2014-04-03
Revision:
8:7af88a6dbb05

File content as of revision 8:7af88a6dbb05:

#include "Car.h"
#include "mbed.h"

Car BuggyName(p10, p25);

int main ()
{
    BuggyName.forwards_timed(3.0);
    BuggyName.setDirection(45);
    BuggyName.forwards_timed(2.5);
    BuggyName.setDirection(-45);
    BuggyName.forwards_timed(4.0);
    BuggyName.stop();
}