config: wire TempSensor section from config.json to TempSensorSim
PlantFactory.create() now accepts sensor_config dict; extracts type and
kwargs, falls back to sigma=0.05/temp_offset=-0.15 defaults. brewpi.py
passes config.get('TempSensor', {}). Templates updated with full
TempSensor sections.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-1
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"ambient_temperature": 20,
|
||||
"Controller" : {
|
||||
"stirrer_name": "sim",
|
||||
"plant_name": "sim",
|
||||
"pid_type": "Smith"
|
||||
},
|
||||
@@ -41,5 +40,12 @@
|
||||
"Stirrer": {
|
||||
"port": "/dev/ttyACM0",
|
||||
"speed": "115200"
|
||||
},
|
||||
"TempSensor": {
|
||||
"type": "sim",
|
||||
"temp_offset": 0.0,
|
||||
"sigma": 0.05,
|
||||
"stirrer_sigma": 0.0,
|
||||
"stirrer_tau": 20.0
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user