Refactor TM handling #450
@ -58,8 +58,12 @@ void ObjectFactory::produce(void* args) {
|
|||||||
Factory::setStaticFrameworkObjectIds();
|
Factory::setStaticFrameworkObjectIds();
|
||||||
PusTmFunnel* pusFunnel;
|
PusTmFunnel* pusFunnel;
|
||||||
CfdpTmFunnel* cfdpFunnel;
|
CfdpTmFunnel* cfdpFunnel;
|
||||||
|
StorageManagerIF* tmStore;
|
||||||
|
StorageManagerIF* ipcStore;
|
||||||
|
PersistentTmStores persistentStores;
|
||||||
auto sdcMan = new DummySdCardManager("/tmp");
|
auto sdcMan = new DummySdCardManager("/tmp");
|
||||||
ObjectFactory::produceGenericObjects(nullptr, &pusFunnel, &cfdpFunnel, *sdcMan);
|
ObjectFactory::produceGenericObjects(nullptr, &pusFunnel, &cfdpFunnel, *sdcMan, &ipcStore,
|
||||||
|
&tmStore, persistentStores);
|
||||||
|
|
||||||
auto* dummyGpioIF = new DummyGpioIF();
|
auto* dummyGpioIF = new DummyGpioIF();
|
||||||
auto* dummySwitcher = new DummyPowerSwitcher(objects::PCDU_HANDLER, 18, 0);
|
auto* dummySwitcher = new DummyPowerSwitcher(objects::PCDU_HANDLER, 18, 0);
|
||||||
|
@ -73,9 +73,8 @@ ReturnValue_t CcsdsIpCoreHandler::initialize() {
|
|||||||
|
|
||||||
#if OBSW_SYRLINKS_SIMULATED == 1
|
#if OBSW_SYRLINKS_SIMULATED == 1
|
||||||
// Update data on rising edge
|
// Update data on rising edge
|
||||||
ptmeConfig->invertTxClock(false);
|
ptmeConfig.invertTxClock(false);
|
||||||
linkState = LINK_UP;
|
linkState = LINK_UP;
|
||||||
forwardLinkstate();
|
|
||||||
#endif /* OBSW_SYRLINKS_SIMULATED == 1*/
|
#endif /* OBSW_SYRLINKS_SIMULATED == 1*/
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
PusTmRouteByFilterHelper::PusTmRouteByFilterHelper() = default;
|
PusTmRouteByFilterHelper::PusTmRouteByFilterHelper() = default;
|
||||||
|
|
||||||
bool PusTmRouteByFilterHelper::packetMatches(PusTmReader& reader, MessageQueueId_t& destination) {
|
bool PusTmRouteByFilterHelper::packetMatches(PusTmReader& reader, MessageQueueId_t& destination) {
|
||||||
for (const auto filterAndDest : routerMap) {
|
for (const auto& filterAndDest : routerMap) {
|
||||||
if (filterAndDest.first.packetMatches(reader)) {
|
if (filterAndDest.first.packetMatches(reader)) {
|
||||||
destination = filterAndDest.second;
|
destination = filterAndDest.second;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user