Skip to content

Commit f34a922

Browse files
committed
Specify degrees for set angle
1 parent a1b1bac commit f34a922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

external_samples/servo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def set_position(self, pos: float) -> None:
3434
'''Set the servo to a position between 0 and 1'''
3535
# sends to the hardware the position of the servo
3636
pass
37-
def set_angle(self, angle: float) -> None:
37+
def set_angle_degrees(self, angle: float) -> None:
3838
'''Set the servo to an angle between 0 and 270'''
3939
self.set_position(angle / 270.0)
4040

0 commit comments

Comments
 (0)