新增步进电机方向控制,振动引脚

This commit is contained in:
HJW
2025-02-19 16:18:41 +08:00
parent 2b96624a1a
commit b95980afe1
9 changed files with 189 additions and 14 deletions

View File

@ -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):