Specify precision for drill_duty CAN packet

This commit is contained in:
Tristan McGinnis
2025-02-27 14:34:15 -06:00
parent d38f44a47e
commit 87c340968c

View File

@@ -158,7 +158,7 @@ class SerialRelay(Node):
# self.send_cmd(command) # self.send_cmd(command)
# Drill # 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) print(msg.drill_duty)
self.send_cmd(command) self.send_cmd(command)