From 8e91fc68de8cfe9604f6f19e415805a79a745861 Mon Sep 17 00:00:00 2001
From: Samuel Tardieu <sam@rfc1149.net>
Date: Fri, 12 Jul 2024 08:00:00 +0200
Subject: [PATCH] Fix doc string for set_{left,right}_motor_speed

---
 controller/python/controller.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/controller/python/controller.py b/controller/python/controller.py
index 06c5e9e..50c3eb1 100644
--- a/controller/python/controller.py
+++ b/controller/python/controller.py
@@ -45,7 +45,7 @@ class Controller:
         (between 1 and 100)."""
         return self._read(self.MAX_MOTOR_PERCENTAGE, 1, "B")[0]
 
-    def set_motor_speed(self, left: Optional[int], right: Optional[int]):
+    def set_motor_speed(self, left: Optional[float], right: Optional[float]):
         """Set the motor speed between -100 and 100. None means not to
         change the motor value. Using None for both motors will put
         the controller board in standby mode and motors will stop."""
@@ -73,11 +73,11 @@ class Controller:
         return self._read(self.MOTOR_SPEED, 2, "bb")
 
     def set_left_motor_speed(self, speed: int):
-        """Set the left motor speed between -127 and 127."""
+        """Set the left motor speed between -100 and 100."""
         self.set_motor_speed(speed, None)
 
     def set_right_motor_speed(self, speed: int):
-        """Set the right motor speed between -127 and 127."""
+        """Set the right motor speed between -100 and 100."""
         self.set_motor_speed(None, speed)
 
     def standby(self):
-- 
GitLab