Ian Hua / Quadcopter-mbedRTOS
Revision:
15:10edc6b12122
Parent:
12:953d25061417
Child:
17:18c3bd016e49
diff -r 267368c83b6a -r 10edc6b12122 RTOS-Threads/src/Task3.cpp
--- a/RTOS-Threads/src/Task3.cpp	Fri May 02 17:19:00 2014 +0000
+++ b/RTOS-Threads/src/Task3.cpp	Sat May 03 00:57:48 2014 +0000
@@ -29,9 +29,9 @@
             box_demo = true;
             rc_out = false;
             gyro_out = false;
-            ypr_offset[0] = ypr[0];
-            ypr_offset[1] = ypr[1];
-            ypr_offset[2] = ypr[2];
+            ypr_offset[0] = ypr_use[0];
+            ypr_offset[1] = ypr_use[1];
+            ypr_offset[2] = ypr_use[2];
         } else if (data == 'R') {
             box_demo = false;
             rc_out = true;