Ian Hua / Quadcopter-mbedRTOS
Revision:
9:371950017779
Parent:
7:3d28cfc4901b
Child:
10:ef5fe86f67fe
--- a/RTOS-Threads/src/Task2.cpp	Wed Apr 30 12:22:56 2014 +0000
+++ b/RTOS-Threads/src/Task2.cpp	Wed Apr 30 13:49:12 2014 +0000
@@ -12,9 +12,9 @@
 
 void Task2(void const *argument)
 {
-    yawPIDrate.setSetPoint((RCCommand[0]-1500)*9/10);
-    pitchPIDrate.setSetPoint((RCCommand[1]-1500)*-1*9/10);
-    rollPIDrate.setSetPoint((RCCommand[2]-1500)*9/10);
+    yawPIDrate.setSetPoint((RCCommand[0]-1500)*9/100);
+    pitchPIDrate.setSetPoint((RCCommand[1]-1500)*-1*9/100);
+    rollPIDrate.setSetPoint((RCCommand[2]-1500)*9/100);
 
     imu.getRotation(&gx, &gy, &gz);
     gx /= 32.8;