Skip to content

Commit

Permalink
Merge pull request #45 from Velt1/master
Browse files Browse the repository at this point in the history
fix for joystick
  • Loading branch information
abizovnuralem authored Jun 27, 2024
2 parents d268c50 + 05531a9 commit a51aab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go2_robot_sdk/go2_robot_sdk/go2_driver_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def cmd_vel_cb(self, msg, robot_num):
y = msg.linear.y
z = msg.linear.z

if x > 0.0 or y > 0.0 or z != 0.0:
if abs(x) > 0.1 or abs(y) > 0.1 or abs(z) > 0.1:
self.robot_cmd_vel[robot_num] = gen_mov_command(round(x, 2), round(y, 2), round(z, 2))

def joy_cb(self, msg):
Expand Down

0 comments on commit a51aab0

Please sign in to comment.