We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb513ca + 52a8990 commit 44cfc08Copy full SHA for 44cfc08
1 file changed
sbot/servo_board.py
@@ -16,10 +16,11 @@
16
get_USB_identity, map_to_float, map_to_int,
17
)
18
19
-DUTY_MIN = 500
+DUTY_MIN = 300
20
DUTY_MAX = 4000
21
-START_DUTY_MIN = 1000
22
-START_DUTY_MAX = 2000
+START_DUTY_MIN = 350
+START_DUTY_MAX = 1980
23
+NUM_SERVOS = 8
24
25
logger = logging.getLogger(__name__)
26
BAUDRATE = 115200 # Since the servo board is a USB device, this is ignored
@@ -77,7 +78,7 @@ def __init__(
77
78
self._serial = SerialWrapper(serial_port, BAUDRATE, identity=initial_identity)
79
80
self._servos = tuple(
- Servo(self._serial, index) for index in range(12)
81
+ Servo(self._serial, index) for index in range(NUM_SERVOS)
82
83
84
self._identity = self.identify()
0 commit comments