Adaptions for EM #264
@ -10,9 +10,6 @@
|
||||
#include "q7sConfig.h"
|
||||
#include "OBSWVersion.h"
|
||||
|
||||
// Set to 1 when software is build for EM
|
||||
#define EM 0
|
||||
|
||||
/*******************************************************************/
|
||||
/** All of the following flags should be enabled for mission code */
|
||||
muellerr marked this conversation as resolved
Outdated
|
||||
/*******************************************************************/
|
||||
|
@ -102,11 +102,11 @@ void Factory::setStaticFrameworkObjectIds() {
|
||||
CommandingServiceBase::defaultPacketSource = objects::PUS_PACKET_DISTRIBUTOR;
|
||||
CommandingServiceBase::defaultPacketDestination = objects::TM_FUNNEL;
|
||||
|
||||
#if EM == 1
|
||||
#if OBSW_Q7S_EM == 1
|
||||
muellerr marked this conversation as resolved
Outdated
muellerr
commented
There is a dedicated preprocessor define inside There is a dedicated preprocessor define inside `q7sConfig.h` called `OBSW_Q7S_EM`
|
||||
DeviceHandlerBase::powerSwitcherId = objects::NO_OBJECT;
|
||||
#else
|
||||
DeviceHandlerBase::powerSwitcherId = objects::PCDU_HANDLER;
|
||||
#endif /* EM == 1 */
|
||||
#endif /* OBSW_Q7S_EM == 1 */
|
||||
|
||||
#if OBSW_TM_TO_PTME == 1
|
||||
TmFunnel::downlinkDestination = objects::CCSDS_HANDLER;
|
||||
|
@ -38,11 +38,11 @@ void ObjectFactory::produce(void* args) {
|
||||
createSolarArrayDeploymentComponents();
|
||||
createPlPcduComponents(gpioComIF, spiMainComIF, pwrSwitcher);
|
||||
#if OBSW_ADD_SYRLINKS == 1
|
||||
#if EM == 1
|
||||
#if OBSW_Q7S_EM == 1
|
||||
muellerr marked this conversation as resolved
Outdated
muellerr
commented
There is a dedicated preprocessor define inside There is a dedicated preprocessor define inside `q7sConfig.h` called `OBSW_Q7S_EM`
|
||||
createSyrlinksComponents(nullptr);
|
||||
#else
|
||||
createSyrlinksComponents(pwrSwitcher);
|
||||
#endif /* EM == 1 */
|
||||
#endif /* OBSW_Q7S_EM == 1 */
|
||||
#endif /* OBSW_ADD_SYRLINKS == 1 */
|
||||
createRtdComponents(q7s::SPI_DEFAULT_DEV, gpioComIF, pwrSwitcher, spiMainComIF);
|
||||
createPayloadComponents(gpioComIF);
|
||||
|
Loading…
Reference in New Issue
Block a user
There is a dedicated preprocessor define inside
q7sConfig.h
calledOBSW_Q7S_EM