Kristian Lauszus
/
BalancingRobotPS3
Code for my balancing robot, controlled with a PS3 controller via bluetooth
Diff: BalancingRobot.h
- Revision:
- 8:87dd9d5f7001
- Parent:
- 7:f1d24c6119ac
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;