修改两个函数initial_opening为100
This commit is contained in:
+1
-1
@@ -176,7 +176,7 @@ class IncrementalPID:
|
||||
self.output = new_output
|
||||
return new_output
|
||||
|
||||
def reset(self, initial_output=0.0):
|
||||
def reset(self, initial_output=100.0):
|
||||
"""Reset controller history and initialize the output command."""
|
||||
initial_output = float(initial_output)
|
||||
self.output = max(self.out_min, min(self.out_max, initial_output))
|
||||
|
||||
Reference in New Issue
Block a user