From 40028c5f7e557c1a6e6375c478884c55040ece4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ellensohn?= Date: Tue, 18 Apr 2023 13:56:56 +0200 Subject: [PATCH] update --- rmp220_teleop/rmp220_teleop.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rmp220_teleop/rmp220_teleop.py b/rmp220_teleop/rmp220_teleop.py index 09c4ed9..2e18057 100644 --- a/rmp220_teleop/rmp220_teleop.py +++ b/rmp220_teleop/rmp220_teleop.py @@ -19,7 +19,7 @@ class TeleopTwistJoy(Node): def joy_callback(self, joy_msg): if joy_msg.buttons[4]: #lb self.limit -= 0.5 - elif joy_msg.buttons[5]: #rb + if joy_msg.buttons[5]: #rb self.limit += 0.5 self.twist.linear.x = self.limit * joy_msg.axes[1] self.twist.angular.z = self.limit * joy_msg.axes[0]