AGV using ros with TROY motor
Dependencies: mbed ros_lib_kinetic
Revision 2:fcf8a7739eed, committed 2018-05-02
- 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 |
diff -r ebc1536af497 -r fcf8a7739eed main.cpp --- 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;
diff -r ebc1536af497 -r fcf8a7739eed mbed.bld --- 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