self-balancing-robot
Dependencies: mbed mbed-rtos Motor
Diff: main.cpp
- Revision:
- 33:391f89df9c60
- Parent:
- 32:c3676d4df853
diff -r c3676d4df853 -r 391f89df9c60 main.cpp --- a/main.cpp Thu Apr 23 20:35:32 2020 +0000 +++ b/main.cpp Thu Apr 23 20:38:57 2020 +0000 @@ -8,7 +8,7 @@ ///////////////////////////// Variable Initialization////////////////////////// /////////////////////////////////////////////////////////////////////////////// Ticker bluetooth; -Serial pc(USBTX, USBRX); +//Serial pc(USBTX, USBRX); Mutex parametersmutex; @@ -192,7 +192,7 @@ /////////////////////////////////////////////////////////////////////////////// int main() { - pc.printf("this is running"); +// pc.printf("this is running"); Thread bluetooth; Thread system_update; @@ -209,10 +209,10 @@ // pc.printf("rp: %f, rd: %f, ri: %f, desired_angle: %f\n", rp, rd, ri, desired_angle); // parametersmutex.unlock(); - angleMutex.lock(); - pc.printf("pAngle: %f", pAngle/70); - pc.printf(" speed: %f\n\r", speed); - angleMutex.unlock(); +// angleMutex.lock(); + // pc.printf("pAngle: %f", pAngle/70); +// pc.printf(" speed: %f\n\r", speed); +// angleMutex.unlock(); //get_current_angle();