Simplify Pot: drop gain/theta params, seed initial temp from ambient

[Pot] - removed the gain (efficiency) factor and the separate
"theta" initial-temperature param; Pot now starts at theta_amb and
set_power()/get_power() operate on p_in directly. Added
set_ambient_temperature() for live ambient updates. Dropped the
now-unused "theta"/"gain" keys from Model/Plant in config.json.sim
and config.json.templ (also fixes a JSON syntax error in
config.json.templ: trailing commas left over after removing "gain"
made Model/Plant fail to parse).
[Sensor] - fix missing space in TempSensorSim.temperature()'s
offset/variance expression (cosmetic, no behavior change).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-19 18:32:28 +02:00
co-authored by Claude Sonnet 4.6
parent 5ae73cce57
commit 17ca79da1a
4 changed files with 11 additions and 33 deletions
+1 -1
View File
@@ -16,4 +16,4 @@ class TempSensorSim(ATemperatureSensor):
self.temp_set = temp
def temperature(self):
return self.temp_set + self.offset+ self.variance * np.random.normal(0, 1) / np.sqrt(12.0)
return self.temp_set + self.offset + self.variance * np.random.normal(0, 1) / np.sqrt(12.0)