Skip to content

Commit

Permalink
Changed aux1 to float
Browse files Browse the repository at this point in the history
  • Loading branch information
CWRUbotix Mac 2 committed Jan 25, 2025
1 parent f8889d4 commit d635b28
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ def __init__(self) -> None:
self.valve_manip_state = False

def controller_callback(self, msg: Joy) -> None:
self.get_logger().debug("Controller Callback")
self.joystick_to_pixhawk(msg)
self.valve_manip_callback(msg)
self.manip_callback(msg)
Expand All @@ -112,8 +111,6 @@ def joystick_to_pixhawk(self, msg: Joy) -> None:
axes: MutableSequence[float] = msg.axes
buttons: MutableSequence[int] = msg.buttons

self.get_logger().debug("PixhawkInstruction creation")

instruction = PixhawkInstruction(
forward=float(axes[LJOYY]), # Left Joystick Y
lateral=-float(axes[LJOYX]), # Left Joystick X
Expand All @@ -122,7 +119,7 @@ def joystick_to_pixhawk(self, msg: Joy) -> None:
pitch=float(axes[RJOYY]), # Right Joystick Y
yaw=-float(axes[RJOYX]), # Right Joystick X
author=PixhawkInstruction.MANUAL_CONTROL,
aux1=1900
aux1=float(1900)
)

self.rc_pub.publish(instruction)
Expand Down

0 comments on commit d635b28

Please sign in to comment.