mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
Flip manual control directions
This commit is contained in:
@@ -113,9 +113,9 @@ class Headless(Node):
|
|||||||
elif dpad_input[0] == -1:
|
elif dpad_input[0] == -1:
|
||||||
input.axis0 = -1
|
input.axis0 = -1
|
||||||
|
|
||||||
input.axis1 = round(self.gamepad.get_axis(0))#left x-axis
|
input.axis1 = -1 * round(self.gamepad.get_axis(0))#left x-axis
|
||||||
input.axis2 = round(self.gamepad.get_axis(1))#left y-axis
|
input.axis2 = -1 * round(self.gamepad.get_axis(1))#left y-axis
|
||||||
input.axis3 = round(self.gamepad.get_axis(4))#right y-axis
|
input.axis3 = -1 * round(self.gamepad.get_axis(4))#right y-axis
|
||||||
|
|
||||||
#Temporary, not controlling digit. Awaiting embedded implementation
|
#Temporary, not controlling digit. Awaiting embedded implementation
|
||||||
input.effector_yaw = 0
|
input.effector_yaw = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user