Add set_ambient_temperature and set_model_plant_params stubs to TempControllerBase

Same pattern as set_model_power: these methods only existed on the Smith
controller, forcing five hasattr guards at call sites. No-op stubs on the
base class give all controllers a stable interface; Smith overrides them.
Remove the now-redundant hasattr guards.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Tqxrk8uj4M3w3d3eXm3xK8
This commit is contained in:
2026-06-25 20:22:33 +02:00
co-authored by Claude Sonnet 4.6
parent 2f2067d2b9
commit 6e696f44e4
4 changed files with 11 additions and 10 deletions
+6
View File
@@ -89,6 +89,12 @@ class TempControllerBase(APid):
def post_pid(self):
pass
def set_ambient_temperature(self, theta_amb):
pass
def set_model_plant_params(self, model_params):
pass
def set_model_power(self, power):
pass