mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
fix arm not spinning
This commit is contained in:
@@ -76,17 +76,18 @@ class SerialRelay(Node):
|
|||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
#if in arm mode, will need to read from the MCU
|
#if in arm mode, will need to read from the MCU
|
||||||
if self.launch_mode == 'arm':
|
|
||||||
try:
|
try:
|
||||||
while rclpy.ok():
|
while rclpy.ok():
|
||||||
|
if self.launch_mode == 'arm':
|
||||||
if self.ser.in_waiting:
|
if self.ser.in_waiting:
|
||||||
self.read_mcu()
|
self.read_mcu()
|
||||||
else:
|
else:
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
finally:
|
finally:
|
||||||
self.cleanup()
|
self.cleanup()
|
||||||
|
|
||||||
|
|
||||||
#Currently will just spit out all values over the /arm/feedback/debug topic as strings
|
#Currently will just spit out all values over the /arm/feedback/debug topic as strings
|
||||||
|
|||||||
Reference in New Issue
Block a user