Bluetooth app controlled robot

Dependencies:   ESP8266 HALLFX_ENCODER LSM9DS1_Library_cal MotorDriver PID mbed

Fork of ESP8266_pid_redbot_webserver by Bryce Williams

Files at this revision

API Documentation at this revision

Comitter:
ihl396
Date:
Wed Mar 16 16:21:56 2016 +0000
Parent:
2:3466e9e16c99
Commit message:
commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 3466e9e16c99 -r bf6e71964ceb main.cpp
--- a/main.cpp	Wed Mar 16 16:03:44 2016 +0000
+++ b/main.cpp	Wed Mar 16 16:21:56 2016 +0000
@@ -12,6 +12,8 @@
 Serial blue(p28,p27);
 BusOut myled(LED1,LED2,LED3,LED4);
 Serial pc(USBTX, USBRX);
+
+// -------- PID Initialization -----------
 float kp, ki, kd;                               // Working gain vars
 float working_setpoint;                         // Used for web parsing and updating
 float setpoint;                                 // This is used by PID objects, because 
@@ -159,7 +161,7 @@
         } 
         while(!imu.accelAvailable());
         imu.readAccel();
-        while(!imu.magAvailable());
+        //while(!imu.magAvailable());
         imu.readMag();
         
         if( sample_time % 800 == 0)