- improved temp controllers

This commit is contained in:
jens
2020-12-22 10:45:51 +01:00
parent fd4d0b3e64
commit 4c93e85dd8
2 changed files with 11 additions and 15 deletions
+2 -2
View File
@@ -169,7 +169,7 @@ if __name__ == '__main__':
hold_counter -= 1
ctrl.process()
plant.process()
temp_ist = plant.get_temperature() + 0.0 * np.random.randn()
temp_ist = plant.get_temperature_delayed() + 0.0 * np.random.randn()
ctrl.set_theta_ist(temp_ist)
y = 3500*ctrl.get_power()
@@ -185,7 +185,7 @@ if __name__ == '__main__':
_y = np.append(_y, y)
_fb = np.append(_fb, fb)
_t = np.append(_t, t)
_heatrate_ist_kalman = np.append(_heatrate_ist_kalman, min(3, ctrl.heatrate_ist))
_heatrate_ist_kalman = np.append(_heatrate_ist_kalman, max(-1, min(3, ctrl.heatrate_ist)))
_temp_ist_kalman = np.append(_temp_ist, ctrl.theta_ist)
t += 1