![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Bluetooth app controlled robot
Dependencies: ESP8266 HALLFX_ENCODER LSM9DS1_Library_cal MotorDriver PID mbed
Fork of ESP8266_pid_redbot_webserver by
Diff: main.cpp
- Revision:
- 3:bf6e71964ceb
- Parent:
- 2:3466e9e16c99
--- 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)