diff --git a/mission/devices/SolarArrayDeploymentHandler.cpp b/mission/devices/SolarArrayDeploymentHandler.cpp index baa35861..df3f0805 100644 --- a/mission/devices/SolarArrayDeploymentHandler.cpp +++ b/mission/devices/SolarArrayDeploymentHandler.cpp @@ -1,5 +1,7 @@ #include "SolarArrayDeploymentHandler.h" +#include + #include #include #include @@ -364,16 +366,18 @@ ReturnValue_t SolarArrayDeploymentHandler::saGpioAlternation() { if (result != returnvalue::OK) { status = result; } + TaskFactory::delayTask(1); result = sa2On(); if (result != returnvalue::OK) { status = result; } } else { - result = sa1On(); + result = sa2Off(); if (result != returnvalue::OK) { status = result; } - result = sa2Off(); + TaskFactory::delayTask(1); + result = sa1On(); if (result != returnvalue::OK) { status = result; } diff --git a/mission/devices/SolarArrayDeploymentHandler.h b/mission/devices/SolarArrayDeploymentHandler.h index c7494b8a..20a558c6 100644 --- a/mission/devices/SolarArrayDeploymentHandler.h +++ b/mission/devices/SolarArrayDeploymentHandler.h @@ -174,7 +174,8 @@ class SolarArrayDeploymentHandler : public ExecutableObjectIF, */ Countdown burnCountdown; - Countdown channelAlternationCd = Countdown(config::SA_DEPL_CHANNEL_ALTERNATION_INTERVAL_SECS); + Countdown channelAlternationCd = + Countdown(config::SA_DEPL_CHANNEL_ALTERNATION_INTERVAL_SECS * 1000); /** * The message queue id of the component commanding an action will be stored in this variable.