mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
fix up prints
This commit is contained in:
@@ -95,7 +95,7 @@ class SerialRelay(Node):
|
|||||||
try:
|
try:
|
||||||
output = str(self.ser.readline(), "utf8")
|
output = str(self.ser.readline(), "utf8")
|
||||||
if output:
|
if output:
|
||||||
self.get_logger().info(f"[MCU] {output}", end="")
|
self.get_logger().info(f"[MCU] {output}")
|
||||||
msg = String()
|
msg = String()
|
||||||
msg.data = output
|
msg.data = output
|
||||||
self.debug_pub.publish(msg)
|
self.debug_pub.publish(msg)
|
||||||
@@ -152,7 +152,7 @@ class SerialRelay(Node):
|
|||||||
self.ser.write(bytes(msg, "utf8"))
|
self.ser.write(bytes(msg, "utf8"))
|
||||||
|
|
||||||
def anchor_feedback(self, msg):
|
def anchor_feedback(self, msg):
|
||||||
self.get_logger().info(f"[Arm Anchor] {msg.data}", end="")
|
self.get_logger().info(f"[Arm Anchor] {msg.data}")
|
||||||
#self.send_cmd(msg.data)
|
#self.send_cmd(msg.data)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ class SerialRelay(Node):
|
|||||||
|
|
||||||
if output:
|
if output:
|
||||||
# All output over debug temporarily
|
# All output over debug temporarily
|
||||||
print(f"[MCU] {output}", end="")
|
print(f"[MCU] {output}")
|
||||||
msg = String()
|
msg = String()
|
||||||
msg.data = output
|
msg.data = output
|
||||||
self.debug_pub.publish(msg)
|
self.debug_pub.publish(msg)
|
||||||
|
|||||||
Reference in New Issue
Block a user