Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed ros_lib_melodic
Diff: src/main.cpp
- Revision:
 - 2:aeaa1c1e0d33
 - Parent:
 - 1:7c355adbc977
 - Child:
 - 3:4b6080e86761
 
diff -r 7c355adbc977 -r aeaa1c1e0d33 src/main.cpp
--- a/src/main.cpp	Thu May 27 18:53:26 2021 +0000
+++ b/src/main.cpp	Thu May 27 19:26:21 2021 +0000
@@ -37,8 +37,8 @@
 #define     PI              3.1415
 #define     ENCODER_PERIOD  0.05            //encoder sampling period in seconds (currently 1/20 sec)
 #define     ENCODER_CPR     980             //clicks per revolution
-#define     L_MAX_SPEED     1
-#define     R_MAX_SPEED     1
+#define     L_MAX_SPEED     1.5
+#define     R_MAX_SPEED     1.5
 
 /* Functionality Summary
 
@@ -64,8 +64,8 @@
     
     while (true) {
         leftCtrl.setSpeed(0.5);
-        ThisThread::sleep_for(3s);
+        //ThisThread::sleep_for(3s);
         leftCtrl.setSpeed(1.2);
-        ThisThread::sleep_for(3s);
+        //ThisThread::sleep_for(3s);
     }
 }