cube

Dependencies:   BNO055_fusion_tom FastPWM mbed

Revision:
32:e77ad4aff1fd
Parent:
31:e159b0caa2ea
Child:
33:2434fd576d34
diff -r e159b0caa2ea -r e77ad4aff1fd main.cpp
--- a/main.cpp	Sat Apr 22 05:33:17 2017 +0000
+++ b/main.cpp	Sat Apr 22 19:39:21 2017 +0000
@@ -87,7 +87,7 @@
     
     if(!isPressed) {
         //Enable closed loop mode, enable motor drivers
-        pwmint.attach(&pwmupdate, .005);
+        pwmint.attach(&pwmupdate, .002);
         EN1 = 1;
         myled = 1;
         isPressed=1;
@@ -109,8 +109,10 @@
 int main()
 {
     wait_us(2000000);
+    
     pc.printf("Bosch Sensortec BNO055 test program on " __DATE__ "/" __TIME__ "\r\n");
     pc.printf("Kbt: %+6.4f, Kbv: %+6.4f, Kwv: %+6.4f\r\n", Kbt,Kbv,Kwv);
+    
     if (imu.chip_ready() == 0) {
         pc.printf("Bosch BNO055 is NOT available!!\r\n");
     }