Drop model_params from base, enable Smith predictor delay correction

TempControllerBase no longer threads model_params through (only the
Smith subclass needs it, for its own Pot model and Kalman filters).

Enable the Smith predictor's actual delay-compensated error term
(theta_err now uses theta_ist_plant - theta_ist_model_delay +
theta_ist_model instead of the plain plant reading), which is the
correction this controller is named for.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-18 21:06:35 +02:00
co-authored by Claude Sonnet 4.6
parent 78ee80f96d
commit 1bf3929b60
3 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import numpy as np
class TempController(TempControllerBase):
def __init__(self, dt, params, model_params=None):
TempControllerBase.__init__(self, dt, params, model_params)
def __init__(self, dt, params):
TempControllerBase.__init__(self, dt, params)
self.kalman = Kalman(dt, params['Kalman'])
def init_kalman(self, value):