File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,11 @@ def configure(self) -> None:
161161 self .bus .write ("I_Coefficient" , motor , 0 )
162162 self .bus .write ("D_Coefficient" , motor , 32 )
163163
164+ if motor == "gripper" :
165+ self .bus .write ("Max_Torque_Limit" , motor , 500 ) # 50% of max torque to avoid burnout
166+ self .bus .write ("Protection_Current" , motor , 250 ) # 50% of max current to avoid burnout
167+ self .bus .write ("Overload_Torque" , motor , 25 ) # 25% torque when overloaded
168+
164169 def setup_motors (self ) -> None :
165170 for motor in reversed (self .bus .motors ):
166171 input (f"Connect the controller board to the '{ motor } ' motor only and press enter." )
Original file line number Diff line number Diff line change @@ -157,6 +157,13 @@ def configure(self) -> None:
157157 self .bus .write ("I_Coefficient" , motor , 0 )
158158 self .bus .write ("D_Coefficient" , motor , 32 )
159159
160+ if motor == "gripper" :
161+ self .bus .write (
162+ "Max_Torque_Limit" , motor , 500
163+ ) # 50% of the max torque limit to avoid burnout
164+ self .bus .write ("Protection_Current" , motor , 250 ) # 50% of max current to avoid burnout
165+ self .bus .write ("Overload_Torque" , motor , 25 ) # 25% torque when overloaded
166+
160167 def setup_motors (self ) -> None :
161168 for motor in reversed (self .bus .motors ):
162169 input (f"Connect the controller board to the '{ motor } ' motor only and press enter." )
You can’t perform that action at this time.
0 commit comments