Improve axidraw logging

This commit is contained in:
2023-03-28 17:53:21 +03:00
parent 6d6f2aa393
commit 1c02d8dce2
2 changed files with 3 additions and 1 deletions

View File

@@ -83,7 +83,8 @@ class AxidrawSerial(Node):
self.status_srv = self.create_service(Status, 'axidraw_status', self.get_status)
while not self.init_serial(port):
self.get_logger().error("Failed to connect to axidraw on port:{}".format(port))
self.get_logger().error("Failed to connect to axidraw on port:{}, retrying".format(port))
self.get_logger().info("Successfully connected to axidraw on port:{}".format(port))
self.move_sub = self.create_subscription(Point, 'axidraw_move', self.move_callback, qos_profile=QoSProfile(depth=1))
self.penup_sub = self.create_subscription(Empty, 'axidraw_penup', self.penup_callback, qos_profile=QoSProfile(depth=1))