mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-04-20 11:51:16 -05:00
feat: (arm) lin ac go back in too
This commit is contained in:
@@ -354,9 +354,9 @@ class Headless(Node):
|
|||||||
# Triggers: EF grippers
|
# Triggers: EF grippers
|
||||||
# Bumpers: EF roll
|
# Bumpers: EF roll
|
||||||
# A: brake
|
# A: brake
|
||||||
# B: _
|
# B: linear actuator in
|
||||||
# X: _
|
# X: _
|
||||||
# Y: linear actuator
|
# Y: linear actuator out
|
||||||
|
|
||||||
ARM_THRESHOLD = 0.2
|
ARM_THRESHOLD = 0.2
|
||||||
|
|
||||||
@@ -402,8 +402,13 @@ class Headless(Node):
|
|||||||
arm_input.brake = True
|
arm_input.brake = True
|
||||||
|
|
||||||
# Y: linear actuator
|
# Y: linear actuator
|
||||||
if button_y:
|
if button_y and not button_b:
|
||||||
arm_input.linear_actuator = 1
|
arm_input.linear_actuator = 1
|
||||||
|
elif button_b and not button_y:
|
||||||
|
arm_input.linear_actuator = -1
|
||||||
|
else:
|
||||||
|
arm_input.linear_actuator = 0
|
||||||
|
|
||||||
|
|
||||||
# BIO
|
# BIO
|
||||||
bio_input = BioControl(
|
bio_input = BioControl(
|
||||||
|
|||||||
Reference in New Issue
Block a user