diff --git a/config.py b/config.py index 8d2a424..dc257b3 100644 --- a/config.py +++ b/config.py @@ -116,7 +116,7 @@ stop_integral_windup = True # # Simulation parameters simulate = True -sim_t_env = 60.0 # deg C +sim_t_env = 255 # deg C sim_c_heat = 500.0 # J/K heat capacity of heat element sim_c_oven = 5000.0 # J/K heat capacity of oven sim_p_heat = 5450.0 # W heating power of oven diff --git a/lib/oven.py b/lib/oven.py index 9eafd06..f5efc42 100644 --- a/lib/oven.py +++ b/lib/oven.py @@ -103,7 +103,7 @@ class TempSensorSimulated(TempSensor): '''Simulates a temperature sensor ''' def __init__(self): TempSensor.__init__(self) - self.simulated_temperature = 255 + self.simulated_temperature = config.sim_t_env def temperature(self): return self.simulated_temperature @@ -526,7 +526,7 @@ class SimulatedOven(Oven): self.R_ho = self.R_ho_noair # set temps to the temp of the surrounding environment - self.t = 255 # self.t_env # deg C temp of oven + self.t = config.sim_t_env # deg C or F temp of oven self.t_h = self.t_env #deg C temp of heating element super().__init__()