File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def get_position_counts(self) -> int:
53
53
"""
54
54
avg = 0
55
55
for motor in self .motors :
56
- avg += motor .get_position_ticks ()
56
+ avg += motor .get_position_counts ()
57
57
return round (avg / len (self .motors ))
58
58
59
59
def reset_encoder_position (self ):
@@ -74,7 +74,7 @@ def get_speed(self) -> float:
74
74
return avg / len (self .motors )
75
75
76
76
77
- def set_target_speed (self , target_speed_rpm : float = None ):
77
+ def set_speed (self , target_speed_rpm : float = None ):
78
78
"""
79
79
Sets target speed (in rpm) to be maintained passively by all motors in this group
80
80
Call with no parameters to turn off speed control
@@ -83,7 +83,7 @@ def set_target_speed(self, target_speed_rpm: float = None):
83
83
:type target_speed_rpm: float, or None
84
84
"""
85
85
for motor in self .motors :
86
- motor .set_target_speed (target_speed_rpm )
86
+ motor .set_speed (target_speed_rpm )
87
87
88
88
def set_speed_controller (self , new_controller ):
89
89
"""
You can’t perform that action at this time.
0 commit comments