mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
potential fix for core node not spinning in anchor mode
This commit is contained in:
@@ -80,12 +80,13 @@ class SerialRelay(Node):
|
|||||||
thread = threading.Thread(target=rclpy.spin, args={self}, daemon=True)
|
thread = threading.Thread(target=rclpy.spin, args={self}, daemon=True)
|
||||||
thread.start()
|
thread.start()
|
||||||
|
|
||||||
if self.launch_mode == 'core':
|
|
||||||
try:
|
try:
|
||||||
while rclpy.ok():
|
while rclpy.ok():
|
||||||
|
if self.launch_mode == 'core':
|
||||||
self.read_MCU() # Check the MCU for updates
|
self.read_MCU() # Check the MCU for updates
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
|
||||||
def read_MCU(self):
|
def read_MCU(self):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user