X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=blobdiff_plain;f=scripts%2Fmove_base.py;fp=scripts%2Fmove_base.py;h=6886ec0cbfd69a303bcea8ff482c6aa61397ba2d;hp=1188e2c8cd0b8abda78dab2ce154a1fd05c26b05;hb=34bae39fabd9b44e1d169087e8d18d542f4f1525;hpb=3d875e0b7d29c59be6a65b13cd4e2b0d157b6744 diff --git a/scripts/move_base.py b/scripts/move_base.py index 1188e2c..6886ec0 100755 --- a/scripts/move_base.py +++ b/scripts/move_base.py @@ -23,6 +23,11 @@ class MoveBase: rate.sleep() def set_speed(self, left, right): + if left > 0: left+=80 + elif left < 0: left-=80 + if right > 0: right+=80 + elif right < 0: right-=80 + if left > 255: left=255 elif left < -255: left=-255 if right > 255: right=255