[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>
51 lines
686 B
Plaintext
Executable File
51 lines
686 B
Plaintext
Executable File
{
|
|
"ambient_temperature": 20,
|
|
"sud": "sude/sud_0010.json",
|
|
"Controller" : {
|
|
"dt": 0.1,
|
|
"sim_warp_factor": 10.0,
|
|
"stirrer_name": "sim",
|
|
"heater_name": "sim",
|
|
"sensor_name": "sim",
|
|
"plant_name": "sim",
|
|
"pid_type": "Smith"
|
|
},
|
|
"TempCtrl": {
|
|
"Hold": {
|
|
"kp": 0.25,
|
|
"ki": 0.0,
|
|
"kd": 0.0,
|
|
"kt": 0.0
|
|
},
|
|
"Heat": {
|
|
"kp": 0.05,
|
|
"ki": 0.01,
|
|
"kd": 0.0,
|
|
"kt": 1.5
|
|
}
|
|
},
|
|
"Model": {
|
|
"C": 4190,
|
|
"M": 25,
|
|
"L": 0.05,
|
|
"Td": 80,
|
|
"gain": 0.8
|
|
},
|
|
"Plant": {
|
|
"C": 4190,
|
|
"M": 22,
|
|
"L": 0.05,
|
|
"Td": 80,
|
|
"gain": 0.8
|
|
},
|
|
"Heater": {
|
|
"port": "/dev/ttyUSB0",
|
|
"speed": "115200"
|
|
},
|
|
"Stirrer": {
|
|
"port": "/dev/ttyACM0",
|
|
"speed": "115200"
|
|
}
|
|
}
|
|
|