start instantiating CFDP components
This commit is contained in:
@ -1,14 +1,15 @@
|
||||
#include "ObjectFactory.h"
|
||||
|
||||
#include "CfdpHandler.h"
|
||||
#include "OBSWConfig.h"
|
||||
#include "bsp_hosted/fsfwconfig/objects/systemObjectList.h"
|
||||
#include "bsp_hosted/fsfwconfig/tmtc/apid.h"
|
||||
#include "commonConfig.h"
|
||||
#include "example/core/GenericFactory.h"
|
||||
#include "example/test/FsfwTestTask.h"
|
||||
#include "example/utility/TmFunnel.h"
|
||||
#include "fsfw/storagemanager/PoolManager.h"
|
||||
#include "fsfw/tmtcservices/CommandingServiceBase.h"
|
||||
#include "fsfw_hal/host/HostFilesystem.h"
|
||||
|
||||
#if OBSW_USE_TCP_SERVER == 0
|
||||
#include <fsfw/osal/common/UdpTcPollingTask.h>
|
||||
@ -20,18 +21,19 @@
|
||||
|
||||
void ObjectFactory::produce(void* args) {
|
||||
Factory::setStaticFrameworkObjectIds();
|
||||
|
||||
StorageManagerIF* tcStore = nullptr;
|
||||
StorageManagerIF* tmStore = nullptr;
|
||||
#if OBSW_ADD_CORE_COMPONENTS == 1
|
||||
{
|
||||
LocalPool::LocalPoolConfig poolCfg = {{16, 100}, {32, 50}, {64, 40},
|
||||
{128, 30}, {1024, 20}, {2048, 10}};
|
||||
new PoolManager(objects::TC_STORE, poolCfg);
|
||||
tcStore = new PoolManager(objects::TC_STORE, poolCfg);
|
||||
}
|
||||
|
||||
{
|
||||
LocalPool::LocalPoolConfig poolCfg = {{16, 100}, {32, 50}, {64, 40},
|
||||
{128, 30}, {1024, 20}, {2048, 10}};
|
||||
new PoolManager(objects::TM_STORE, poolCfg);
|
||||
tmStore = new PoolManager(objects::TM_STORE, poolCfg);
|
||||
}
|
||||
|
||||
{
|
||||
@ -39,7 +41,8 @@ void ObjectFactory::produce(void* args) {
|
||||
{128, 30}, {1024, 20}, {2048, 10}};
|
||||
new PoolManager(objects::IPC_STORE, poolCfg);
|
||||
}
|
||||
ObjectFactory::produceGenericObjects();
|
||||
TmFunnel* funnel;
|
||||
ObjectFactory::produceGenericObjects(&funnel);
|
||||
// TMTC Reception via TCP/IP socket
|
||||
#if OBSW_USE_TCP_SERVER == 0
|
||||
auto tmtcBridge = new UdpTmTcBridge(objects::TCPIP_TMTC_BRIDGE, objects::CCSDS_DISTRIBUTOR);
|
||||
@ -60,4 +63,13 @@ void ObjectFactory::produce(void* args) {
|
||||
periodicEvent = true;
|
||||
#endif
|
||||
new FsfwTestTask(objects::TEST_TASK, periodicEvent);
|
||||
auto* hostFs = new HostFilesystem();
|
||||
FsfwHandlerParams params(objects::CFDP_HANDLER, *hostFs, *funnel, *tcStore, *tmStore);
|
||||
cfdp::IndicationCfg indicationCfg;
|
||||
UnsignedByteField<uint16_t> apid(COMMON_APID);
|
||||
cfdp::EntityId localId(apid);
|
||||
cfdp::RemoteEntityCfg cfg;
|
||||
cfdp::OneRemoteConfigProvider remoteCfgProvider(cfg);
|
||||
// CfdpHandlerCfg cfg(localId, indicationCfg);
|
||||
// new CfdpHandler();
|
||||
}
|
||||
|
Reference in New Issue
Block a user