AGV using ros with TROY motor

Dependencies:   mbed ros_lib_kinetic

Files at this revision

API Documentation at this revision

Comitter:
WeberYang
Date:
Wed May 02 06:12:23 2018 +0000
Parent:
1:ebc1536af497
Commit message:
new car first version

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 12 04:51:13 2018 +0000
+++ b/main.cpp	Wed May 02 06:12:23 2018 +0000
@@ -1,4 +1,4 @@
-#include "mbed.h"
+#include "mbed.h"
 #include <ros.h>
 #include <ros/time.h>
 #include <std_msgs/Empty.h>
@@ -531,7 +531,8 @@
      motor_rpm_l = 0;
      }
      
-     Sendmessage(motor_rpm_r,motor_rpm_l);
+//     Sendmessage(-motor_rpm_r,-motor_rpm_l);
+     Sendmessage(-motor_rpm_l,-motor_rpm_r);
      
      old_seq = old_seq + 1;
     
--- a/mbed.bld	Thu Apr 12 04:51:13 2018 +0000
+++ b/mbed.bld	Wed May 02 06:12:23 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/7130f322cb7e
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/cbbeb26dbd92
\ No newline at end of file