fdfdf
Dependencies: Motordriver mbed
Video of everything working: https://drive.google.com/a/usna.edu/file/d/0B6gx9qlkekGOSXVlQkN1RWpVcDg/view?usp=sharing
Updated Schematic
Revision 16:9ce3821d4550, committed 2015-02-24
- Comitter:
- jared152
- Date:
- Tue Feb 24 14:12:40 2015 +0000
- Parent:
- 15:eea59ad05a93
- Commit message:
- updated
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r eea59ad05a93 -r 9ce3821d4550 main.cpp --- a/main.cpp Sat Feb 07 03:19:49 2015 +0000 +++ b/main.cpp Tue Feb 24 14:12:40 2015 +0000 @@ -22,6 +22,7 @@ Timer t; //initializes timer t + //Global Variables//////////////// int jump = 0; //flag for whether jumping or not int t1, t2, //global variables for the echo pulse. c @@ -74,7 +75,7 @@ dist = dist/number_of_samples; //take average return dist; -} //end distance() function +} //end read_ultrasonic() function void flip() //all flip function stuff in here {