Created an example programme that uses the RenBuggy_Servo library. RenBuggy Figure Of Eight

Dependencies:   RenBuggy_Timed

Committer:
Markatron
Date:
Mon Mar 31 10:19:41 2014 +0000
Revision:
0:794a1188e0e3
Child:
1:da2f06538364
Created a library for use with the RenBuggy with 2 wheels that travels for an amount of time specified by the user.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Markatron 0:794a1188e0e3 1 /*******************************************************************************
Markatron 0:794a1188e0e3 2 * This programme demonstrates how to use the RenBuggy_Timed library.
Markatron 0:794a1188e0e3 3 *
Markatron 0:794a1188e0e3 4 * Mark Jones
Markatron 0:794a1188e0e3 5 * V1.0 31/03/2014
Markatron 0:794a1188e0e3 6 *******************************************************************************/
Markatron 0:794a1188e0e3 7
Markatron 0:794a1188e0e3 8 #include "RenBuggyTimed.h"
Markatron 0:794a1188e0e3 9
Markatron 0:794a1188e0e3 10 RenBuggy myBuggy(p5, p6, p8, p7);
Markatron 0:794a1188e0e3 11
Markatron 0:794a1188e0e3 12 int main() {
Markatron 0:794a1188e0e3 13
Markatron 0:794a1188e0e3 14 myBuggy.forward(4);
Markatron 0:794a1188e0e3 15 myBuggy.left(3);
Markatron 0:794a1188e0e3 16 myBuggy.forward(4);
Markatron 0:794a1188e0e3 17 myBuggy.right(3);
Markatron 0:794a1188e0e3 18
Markatron 0:794a1188e0e3 19 return 0;
Markatron 0:794a1188e0e3 20 }