Skip to content

Commit de435ed

Browse files
chore: add hvac system to the system
1 parent 9fef994 commit de435ed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

room_control_unit/room_control_unit.ino

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
void setup() {
1717
System::getInstance()->init();
1818
List<Event*>* const eventList = new List<Event*>();
19+
Command* startCommand = nullptr;
20+
Command** currentCommand = &startCommand;
1921
SerialInterface::getInstance()->init(115200);
2022

2123
System::getInstance()->addTask(new TemperatureHumidityMonitoring(TEMPERATURE_HUMIDITY_PERIOD, getTemperatureHumidityMonitoringContext(eventList)));
@@ -24,7 +26,9 @@ void setup() {
2426
System::getInstance()->addTask(new PresenceMonitoring(PRESENCE_MONITORING_PERIOD, getPresenceMonitoringContext(eventList)));
2527
System::getInstance()->addTask(new PeopleTracking(PEOPLE_TRACKING_PERIOD, getPeopleTrackingContext(eventList)));
2628
System::getInstance()->addTask(new ORAdvancedMonitoring(OR_ADVANCE_MONITORING_PERIOD, getORAdvancedMonitoringContext(eventList)));
27-
System::getInstance()->addTask(new CommandListener(COMMAND_LISTENER_PERIOD, getCommandListenerContext(SerialInterface::getInstance())));
29+
System::getInstance()->addTask(new CommandListener(COMMAND_LISTENER_PERIOD, getCommandListenerContext(SerialInterface::getInstance(), currentCommand)));
30+
System::getInstance()->addTask(new HvacSystem(HVAC_SYSTEM_PERIOD, getHvacSystemContextOperatingRoom(eventList, currentCommand)));
31+
System::getInstance()->addTask(new HvacSystem(HVAC_SYSTEM_PERIOD, getHvacSystemContextPreOperatingRoom(eventList, currentCommand)));
2832
}
2933

3034
void loop() {

0 commit comments

Comments
 (0)