Simon Krogedal / Karbot_wheel_control

Dependencies:   mbed ros_lib_melodic

Revision:
2:aeaa1c1e0d33
Parent:
1:7c355adbc977
Child:
3:4b6080e86761
--- 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);
     }
 }