mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
remove debug prints
This commit is contained in:
@@ -109,7 +109,7 @@ class SerialRelay(Node):
|
|||||||
|
|
||||||
def send_cmd(self, msg):
|
def send_cmd(self, msg):
|
||||||
message = msg.data
|
message = msg.data
|
||||||
self.get_logger().info(f"Sending command to MCU: {msg}")
|
#self.get_logger().info(f"Sending command to MCU: {msg}")
|
||||||
self.ser.write(bytes(message, "utf8"))
|
self.ser.write(bytes(message, "utf8"))
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
@@ -174,10 +174,9 @@ class SerialRelay(Node):
|
|||||||
self.send_cmd(command)
|
self.send_cmd(command)
|
||||||
|
|
||||||
#print(f"[Sys] Relaying: {command}")
|
#print(f"[Sys] Relaying: {command}")
|
||||||
|
|
||||||
def send_cmd(self, msg):
|
def send_cmd(self, msg):
|
||||||
if self.launch_mode == 'anchor':
|
if self.launch_mode == 'anchor':
|
||||||
self.get_logger().info(f"[Core to Anchor Relay] {msg}")
|
#self.get_logger().info(f"[Core to Anchor Relay] {msg}")
|
||||||
output = String()#Convert to std_msg string
|
output = String()#Convert to std_msg string
|
||||||
output.data = msg
|
output.data = msg
|
||||||
self.anchor_pub.publish(output)
|
self.anchor_pub.publish(output)
|
||||||
|
|||||||
Reference in New Issue
Block a user