AGV using ros with TROY motor
Dependencies: mbed ros_lib_kinetic
Diff: main.cpp
- Revision:
- 2:fcf8a7739eed
- Parent:
- 0:85456b971234
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;