Committed for sharing.
Dependencies: mbed SelfBalancingRobot_BerkYasarYavuz_AdilBerkayTemiz Motor ledControl2 HC_SR04_Ultrasonic_Library
Diff: BalancingRobot.h
- Revision:
- 8:87dd9d5f7001
- Parent:
- 7:f1d24c6119ac
- Child:
- 9:67f2110fce8e
diff -r f1d24c6119ac -r 87dd9d5f7001 BalancingRobot.h --- a/BalancingRobot.h Mon Apr 09 21:40:47 2012 +0000 +++ b/BalancingRobot.h Fri Apr 13 19:45:25 2012 +0000 @@ -54,7 +54,7 @@ double iTerm; /* Used for timing */ -long timer; +unsigned long timer; const long STD_LOOP_TIME = 10*1000; // Fixed time loop of 10 milliseconds long lastLoopTime = STD_LOOP_TIME;