RenBuggyTimed with edited function and access to seven segment display
Dependencies: SevenSegmentDisplay mbed
Fork of 1-RenBuggyTimed by
Diff: main.cpp
- Revision:
- 1:91ca3ea0f578
- Parent:
- 0:9870f526ddd1
--- a/main.cpp Fri Mar 11 10:36:38 2016 +0000 +++ b/main.cpp Wed Apr 13 07:04:28 2016 +0000 @@ -1,6 +1,6 @@ /********************************************************* *RenBuggyTimed * -*Author: Elijah Orr * +*Author: Dan Argust * * * *This program demonstates use of a library of functions * *(TimedMovement) to control the movement of the RenBuggy.* @@ -33,8 +33,22 @@ and TimedMovement.cpp, and specify the length of time we want them to run for by passing a variable which represents a length of time in seconds */ - forward(5); + forward(5.5); + hold(16); + readButton(11); + forward(3); left(2); - forward(5); - stop(); -} + right(6.5); + forward(3); + hold(5); + + right(0.25); + for (int i = 0;i<6;i++) + { + left(0.5); + right(0.5); + } + left(0.25); + forward(1.0); + +} \ No newline at end of file