mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
fix: I hate python (#21)
BioControl.drill expects an int, have to explicitly cast to an int or headless will crash Makes main branch functional
This commit is contained in:
@@ -275,7 +275,7 @@ class Headless(Node):
|
|||||||
|
|
||||||
# Drill motor (FAERIE)
|
# Drill motor (FAERIE)
|
||||||
if deadzone(left_trigger) > 0 or deadzone(right_trigger) > 0:
|
if deadzone(left_trigger) > 0 or deadzone(right_trigger) > 0:
|
||||||
bio_input.drill = 100 * right_trigger - 100 * left_trigger
|
bio_input.drill = int(30 * (right_trigger - left_trigger)) # Max duty cycle 30%
|
||||||
|
|
||||||
self.core_publisher.publish(CORE_STOP_MSG)
|
self.core_publisher.publish(CORE_STOP_MSG)
|
||||||
self.arm_publisher.publish(arm_input)
|
self.arm_publisher.publish(arm_input)
|
||||||
|
|||||||
Reference in New Issue
Block a user