Skip to content
Snippets Groups Projects
Commit c96ce6dd authored by Nicolò Caruso's avatar Nicolò Caruso Committed by Emilio Corigliano
Browse files

[GS] Hotfix Dependency Manager injection

Now the dependency manager need to inject also the ARP modules to avoid errors.
Still a temporary fix that can be refined.
parent d80c7220
No related branches found
No related tags found
No related merge requests found
......@@ -164,22 +164,22 @@ int main()
// Inserting Modules
// ARP modules insertion
if (dipRead.isARP)
{
LOG_DEBUG(logger, "[debug] Starting as ARP Ground Station\n");
leds = new Antennas::Leds(scheduler_low);
hub = new Antennas::Hub();
LOG_DEBUG(logger, "[debug] Inserting ARP Ground Station modules\n");
actuators = new Antennas::Actuators();
sensors = new Antennas::Sensors();
sma = new Antennas::SMA(scheduler_high);
pinHandler = new Antennas::PinHandler();
leds = new Antennas::Leds(scheduler_low);
ok &= manager.insert(sma);
ok &= manager.insert<HubBase>(hub);
ok &= manager.insert(actuators);
ok &= manager.insert(sensors);
ok &= manager.insert(leds);
ok &= manager.insert(pinHandler);
if (dipRead.isARP)
{
hub = new Antennas::Hub();
ok &= manager.insert<HubBase>(hub);
}
// Ground station module insertion
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment