Skip to content

Commit 44cfc08

Browse files
authored
Merge pull request #337 from sourcebots/servo
Update servo limits, numbers and defaults for servo fw 4.4
2 parents fb513ca + 52a8990 commit 44cfc08

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

sbot/servo_board.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@
1616
get_USB_identity, map_to_float, map_to_int,
1717
)
1818

19-
DUTY_MIN = 500
19+
DUTY_MIN = 300
2020
DUTY_MAX = 4000
21-
START_DUTY_MIN = 1000
22-
START_DUTY_MAX = 2000
21+
START_DUTY_MIN = 350
22+
START_DUTY_MAX = 1980
23+
NUM_SERVOS = 8
2324

2425
logger = logging.getLogger(__name__)
2526
BAUDRATE = 115200 # Since the servo board is a USB device, this is ignored
@@ -77,7 +78,7 @@ def __init__(
7778
self._serial = SerialWrapper(serial_port, BAUDRATE, identity=initial_identity)
7879

7980
self._servos = tuple(
80-
Servo(self._serial, index) for index in range(12)
81+
Servo(self._serial, index) for index in range(NUM_SERVOS)
8182
)
8283

8384
self._identity = self.identify()

0 commit comments

Comments
 (0)