segway_self balancing robot 4180 project

Dependencies:   mbed mbed-rtos LSM9DS1_Library

Files at this revision

API Documentation at this revision

Comitter:
pandirimukund
Date:
Sat Apr 18 19:39:10 2020 +0000
Parent:
7:8af26d50c006
Child:
9:28821420f7a4
Commit message:
added the wait;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Sat Apr 18 19:37:27 2020 +0000
+++ b/main.cpp	Sat Apr 18 19:39:10 2020 +0000
@@ -92,6 +92,7 @@
     bluetooth.attach(&bluetooth_update, 0.1);
     while(1) {
         pc.printf("rp: %f, rd: %f, ri: %f, desired_angle: %f", rp, rd, ri, desired_angle);
+        wait(0.1);
     }
 }