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:
@@ -1,7 +1,6 @@
|
||||
{
|
||||
"ambient_temperature": 20,
|
||||
"Controller" : {
|
||||
"stirrer_name": "pololu1376",
|
||||
"plant_name": "real",
|
||||
"pid_type": "Smith"
|
||||
},
|
||||
@@ -35,11 +34,17 @@
|
||||
}
|
||||
},
|
||||
"Heater": {
|
||||
"type": "hendi",
|
||||
"port": "/dev/ttyUSB0",
|
||||
"speed": "115200"
|
||||
},
|
||||
"Stirrer": {
|
||||
"type": "pololu1376",
|
||||
"port": "/dev/ttyACM0",
|
||||
"speed": "115200"
|
||||
},
|
||||
"TempSensor": {
|
||||
"type": "max31865",
|
||||
"temp_offset": -0.15
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user