- refactored

This commit is contained in:
jens
2020-12-16 17:10:46 +01:00
parent 48d0baa74f
commit fa93a3911e
11 changed files with 64 additions and 60 deletions
+3 -3
View File
@@ -167,13 +167,13 @@ if __name__ == '__main__':
hold_counter -= 1
ctrl.process()
plant.process()
temp_ist = plant.getTemperature() + 0.0*np.random.randn()
temp_ist = plant.get_temperature() + 0.0 * np.random.randn()
ctrl.set_theta_ist(temp_ist)
y = 3500*ctrl.get_power()
power = max(0, 250+y)
plant.setPower(power)
fb = plant.getPower()
plant.set_power(power)
fb = plant.get_power()
if abs(temp_ist - temp_soll) < 0.1:
hold = True