Skip to content

Commit b8db2ed

Browse files
committed
Fix Smith Predictor Controller Bug
Fix errant variable naming.
1 parent e7a0c65 commit b8db2ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/pid_sp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def __init__(self, config, units, cycle_data):
7979
self.set_target(0.0)
8080

8181
def _calculate_gains(self, pb, ti, td):
82-
if pd == 0:
82+
if pb == 0:
8383
self.kp = 0
8484
else:
8585
self.kp = -1 / pb

0 commit comments

Comments
 (0)