Simon Krogedal / Karbot_wheel_control

Dependencies:   mbed ros_lib_melodic

Files at this revision

API Documentation at this revision

Comitter:
krogedal
Date:
Thu May 27 19:26:21 2021 +0000
Parent:
1:7c355adbc977
Child:
3:4b6080e86761
Commit message:
moved back to mbed 2.0, as this is required for ros melodic libs to work

Changed in this revision

lib/mbed.bld Show annotated file Show diff for this revision Revisions of this file
lib/ros_lib_melodic.lib Show annotated file Show diff for this revision Revisions of this file
mbed-os.lib Show diff for this revision Revisions of this file
src/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/mbed.bld	Thu May 27 19:26:21 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/ros_lib_melodic.lib	Thu May 27 19:26:21 2021 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/garyservin/code/ros_lib_melodic/#fa426560b283
--- a/mbed-os.lib	Thu May 27 18:53:26 2021 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-https://github.com/ARMmbed/mbed-os/#b1796dedeb8accde1cbaecf136fab96895e23d81
--- 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);
     }
 }