mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-02-11 09:20:40 +00:00
Specify precision for drill_duty CAN packet
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user