style: add a few type annotations

This commit is contained in:
David
2025-05-27 19:59:13 +00:00
parent 39f2aa3a18
commit bff729f25a
2 changed files with 4 additions and 4 deletions

View File

@@ -152,7 +152,7 @@ class SerialRelay(Node):
self.ser.close()
self.exit(1)
def scale_duty(self, value, max_speed):
def scale_duty(self, value: float, max_speed: float):
leftMin = -1
leftMax = 1
rightMin = -max_speed/100.0