Skip to content
Snippets Groups Projects
Commit b0d65d7a authored by Samuel Tardieu's avatar Samuel Tardieu
Browse files

Whitespace and line length cleanup

parent 42c94647
No related branches found
No related tags found
No related merge requests found
Pipeline #97370 passed
......@@ -151,4 +151,3 @@ the feature executes an alternate firmware.
- 0x01: failure
- 0x02: command executed too soon
- 0x03: features locked because of previous failure
......@@ -99,14 +99,14 @@ class Controller:
return {"moving": (status & 1) != 0}
def set_motor_shutdown_timeout(self, duration: float):
"""Set the duration in seconds after which the motors will shut down if no valid
command is received. The minimum is 0.1 seconds, the maximum is 10 seconds.
"""
"""Set the duration in seconds after which the motors will
shut down if no valid command is received. The minimum is 0.1
seconds, the maximum is 10 seconds."""
if duration < 0.1 or duration > 10.0:
raise ValueError
self._write(self.MOTOR_SHUTDOWN_TIMEOUT, [round(duration * 10)])
def get_motor_shutdown_timeout(self) -> float:
"""Get the duration in seconds after which the motors will shut down if no valid
command is received."""
"""Get the duration in seconds after which the motors will shut down
if no valid command is received."""
return self._read(self.MOTOR_SHUTDOWN_TIMEOUT, 1, "B")[0] / 10
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment