Code for my balancing robot, controlled with a PS3 controller via bluetooth

Dependencies:   mbed

Revision:
8:87dd9d5f7001
Parent:
7:f1d24c6119ac
--- 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;