From 9734a8afef08c4894a36f93ea2ccbfcd94855075 Mon Sep 17 00:00:00 2001 From: 0xD0M1M0 <76812428+0xD0M1M0@users.noreply.github.com> Date: Thu, 29 Dec 2022 12:52:11 +0100 Subject: [PATCH] Fix left / right steering on xBox-Controller --- src/joystick_parser_node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick_parser_node.py b/src/joystick_parser_node.py index 7ae92e8..113f2f9 100755 --- a/src/joystick_parser_node.py +++ b/src/joystick_parser_node.py @@ -64,7 +64,7 @@ def callback(data): controller_funtion_map = { "x_axis": 0, "y_axis": 1, - "invert_x_axis": True, + "invert_x_axis": False, "X_button": 2, "Y_button": 3, "A_button": 0, @@ -165,4 +165,4 @@ def callback(data): sub = rospy.Subscriber("/joy", Joy, callback, queue_size=1) pub = rospy.Publisher('/rover_command', RoverCommand, queue_size=1) - rospy.spin() \ No newline at end of file + rospy.spin()