Skip to content

Commit d4daf52

Browse files
committed
docstring
1 parent 7666182 commit d4daf52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pslab/external/motor.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ def _get_duty_cycle(self, angle):
7575

7676

7777
class RoboticArm:
78+
"""Robotic arm controller for up to 4 servos."""
79+
7880
MAX_SERVOS = 4
7981

8082
def __init__(self, servos: List[Servo]) -> None:
@@ -85,6 +87,7 @@ def __init__(self, servos: List[Servo]) -> None:
8587
self.servos = servos
8688

8789
def run_schedule(self, timeline: List[List[int]]) -> None:
90+
"""Move servos based on a time-based angle schedule."""
8891
for i in range(len(timeline)):
8992
for j in range(len(self.servos)):
9093
angle = timeline[i][j]

0 commit comments

Comments
 (0)