最新版本密胺计量代码
This commit is contained in:
@ -42,7 +42,7 @@ class PIDAlgorithm(ControlAlgorithm):
|
||||
#误差500g 500*0.5 + 1000* 0.01 + [0.5*10] = 250 + 10 + ... = 260
|
||||
return max(self.min_speed, min(self.max_speed, output)), error #
|
||||
|
||||
|
||||
# 不是真正的模糊控制算法,是一个简单的分段阈值控制
|
||||
class FuzzyLogicAlgorithm(ControlAlgorithm):
|
||||
def calculate_speed(self, current, target):
|
||||
error = target - current
|
||||
|
||||
Reference in New Issue
Block a user