From 87c340968c01d828df79f84d39d9be8f6fe62e26 Mon Sep 17 00:00:00 2001 From: Tristan McGinnis Date: Thu, 27 Feb 2025 14:34:15 -0600 Subject: [PATCH] Specify precision for drill_duty CAN packet --- src/bio_pkg/bio_pkg/bio_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bio_pkg/bio_pkg/bio_node.py b/src/bio_pkg/bio_pkg/bio_node.py index 80e0594..d7789fd 100644 --- a/src/bio_pkg/bio_pkg/bio_node.py +++ b/src/bio_pkg/bio_pkg/bio_node.py @@ -158,7 +158,7 @@ class SerialRelay(Node): # self.send_cmd(command) # Drill - command = "can_relay_tovic,faerie,19," + str(msg.drill_duty) + "\n" + command = f"can_relay_tovic,faerie,19,{msg.drill_duty:.2f}\n" print(msg.drill_duty) self.send_cmd(command)