Skip to content

Commit d44684f

Browse files
chore: add surgical light system to the system
1 parent 1df47f7 commit d44684f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

room_control_unit/room_control_unit.ino

+6-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@
1313
#include "src/config/ContextProvider.h"
1414
#include "src/app/io/communication/SerialInterface.h"
1515

16+
#define SERIAL_INTERFACE_BAUD_RATE 115200
17+
1618
void setup() {
1719
System::getInstance()->init();
1820
List<Event*>* const eventList = new List<Event*>();
1921
Command* startCommand = nullptr;
2022
Command** currentCommand = &startCommand;
21-
SerialInterface::getInstance()->init(115200);
23+
SerialInterface::getInstance()->init(SERIAL_INTERFACE_BAUD_RATE);
2224

2325
System::getInstance()->addTask(new CommandListener(COMMAND_LISTENER_PERIOD, getCommandListenerContext(SerialInterface::getInstance(), currentCommand)));
2426
System::getInstance()->addTask(new TemperatureHumidityMonitoring(TEMPERATURE_HUMIDITY_PERIOD, getTemperatureHumidityMonitoringContext(eventList)));
@@ -28,8 +30,9 @@ void setup() {
2830
System::getInstance()->addTask(new ORAdvancedMonitoring(OR_ADVANCE_MONITORING_PERIOD, getORAdvancedMonitoringContext(eventList)));
2931
System::getInstance()->addTask(new HvacSystem(HVAC_SYSTEM_PERIOD, getHvacSystemContextOperatingRoom(eventList, currentCommand)));
3032
System::getInstance()->addTask(new HvacSystem(HVAC_SYSTEM_PERIOD, getHvacSystemContextPreOperatingRoom(eventList, currentCommand)));
31-
System::getInstance()->addTask(new AmbientLightSystem(AMBIENT_LIGHT_PERIOD, getAmbientLightContextOperatingRoom(eventList, currentCommand)));
32-
System::getInstance()->addTask(new AmbientLightSystem(AMBIENT_LIGHT_PERIOD, getAmbientLightContextPreOperatingRoom(eventList, currentCommand)));
33+
System::getInstance()->addTask(new AmbientLightSystem(AMBIENT_LIGHT_PERIOD, getAmbientLightSystemContextOperatingRoom(eventList, currentCommand)));
34+
System::getInstance()->addTask(new AmbientLightSystem(AMBIENT_LIGHT_PERIOD, getAmbientLightSystemContextPreOperatingRoom(eventList, currentCommand)));
35+
System::getInstance()->addTask(new ORSurgicalLightSystem(OR_SURGICAL_LIGHT_PERIOD, getORSurgicalLightSystemContext(eventList, currentCommand)));
3336
System::getInstance()->addTask(new GatewayExporter(GATEWAY_EXPORTER_PERIOD, getGatewayExporterContext(eventList, SerialInterface::getInstance())));
3437
}
3538

0 commit comments

Comments
 (0)