新增步进电机方向控制,振动引脚
This commit is contained in:
@ -22,7 +22,7 @@ class PIDAlgorithm(ControlAlgorithm):
|
||||
self.kd = kd
|
||||
self.integral = 0
|
||||
self.last_error = 0
|
||||
self.min_speed = 10 # 最小运行速度
|
||||
self.min_speed = 1 # 最小运行速度
|
||||
self.max_speed = 100 # 最大运行速度
|
||||
|
||||
def calculate_speed(self, current, target):
|
||||
|
||||
Reference in New Issue
Block a user