You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sets the behavior of both motor at 0 effort to either brake (hold position) or coast (free spin)
84
+
:param brake_at_zero_effort: Whether or not to brake at 0 effort. Can use EncodedMotor.ZERO_EFFORT_BREAK or EncodedMotor.ZERO_EFFORT_COAST for clarity.
Sets the behavior of the motor at 0 effort to either brake (hold position) or coast (free spin)
101
+
:param brake_at_zero_effort: Whether or not to brake at 0 effort. Can use EncodedMotor.ZERO_EFFORT_BREAK or EncodedMotor.ZERO_EFFORT_COAST for clarity.
102
+
:type brake_at_zero_effort: bool
103
+
"""
104
+
self.brake_at_zero=brake_at_zero_effort
105
+
106
+
defbrake(self):
107
+
"""
108
+
Causes the motor to resist rotation.
109
+
"""
110
+
# Exact impl of brake depends on which board is being used.
0 commit comments