First trial

Dependencies:   MPU6050 Motor ledControl2 mbed

Fork of BalancingRobotPS3 by Kristian Lauszus

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