Greg Abdo / Mbed 2 deprecated quadCommand

Dependencies:   mbed PID MMA8451Q

Revision:
60:6906a96344a0
Parent:
58:9dfd9169a5e7
--- a/quadCommand/quadCommand.cpp	Wed Jul 03 04:45:03 2013 +0000
+++ b/quadCommand/quadCommand.cpp	Sat Jul 20 02:28:04 2013 +0000
@@ -102,7 +102,7 @@
     updateCurrent();
     float throttle, pitch, roll, yaw;   
         
-    throttle = targetThrottle;
+    throttle = targetThrottle * 5;  // Increased throttle Range to match higher resolution
     pitch = pidPitch->correct(currentPitch, targetPitch, MOTOR_UPDATE);
     roll = pidRoll->correct(currentRoll, targetRoll, MOTOR_UPDATE);
     yaw = pidYaw->correct(currentYaw, targetYaw, MOTOR_UPDATE);