better name for global object
This commit is contained in:
parent
8fd8a37f59
commit
875174c4ad
@ -33,7 +33,7 @@ enum framework_objects : object_id_t {
|
|||||||
TC_STORE = 0x534f0100,
|
TC_STORE = 0x534f0100,
|
||||||
TM_STORE = 0x534f0200,
|
TM_STORE = 0x534f0200,
|
||||||
TIME_STAMPER = 0x53500010,
|
TIME_STAMPER = 0x53500010,
|
||||||
TC_VERIFICATOR = 0x53500020,
|
VERIFICATION_REPORTER = 0x53500020,
|
||||||
|
|
||||||
FSFW_OBJECTS_END = 0x53ffffff,
|
FSFW_OBJECTS_END = 0x53ffffff,
|
||||||
NO_OBJECT = 0xFFFFFFFF
|
NO_OBJECT = 0xFFFFFFFF
|
||||||
|
@ -137,7 +137,7 @@ ReturnValue_t PusDistributor::initialize() {
|
|||||||
return ObjectManagerIF::CHILD_INIT_FAILED;
|
return ObjectManagerIF::CHILD_INIT_FAILED;
|
||||||
}
|
}
|
||||||
if (verifyChannel == nullptr) {
|
if (verifyChannel == nullptr) {
|
||||||
verifyChannel = ObjectManager::instance()->get<VerificationReporterIF>(objects::TC_VERIFICATOR);
|
verifyChannel = ObjectManager::instance()->get<VerificationReporterIF>(objects::VERIFICATION_REPORTER);
|
||||||
if (verifyChannel == nullptr) {
|
if (verifyChannel == nullptr) {
|
||||||
return ObjectManagerIF::CHILD_INIT_FAILED;
|
return ObjectManagerIF::CHILD_INIT_FAILED;
|
||||||
}
|
}
|
||||||
|
@ -124,7 +124,7 @@ ReturnValue_t CommandingServiceBase::initialize() {
|
|||||||
|
|
||||||
if (verificationReporter == nullptr) {
|
if (verificationReporter == nullptr) {
|
||||||
verificationReporter =
|
verificationReporter =
|
||||||
ObjectManager::instance()->get<VerificationReporterIF>(objects::TC_VERIFICATOR);
|
ObjectManager::instance()->get<VerificationReporterIF>(objects::VERIFICATION_REPORTER);
|
||||||
if (verificationReporter == nullptr) {
|
if (verificationReporter == nullptr) {
|
||||||
return ObjectManagerIF::CHILD_INIT_FAILED;
|
return ObjectManagerIF::CHILD_INIT_FAILED;
|
||||||
}
|
}
|
||||||
|
@ -126,7 +126,7 @@ ReturnValue_t PusServiceBase::initialize() {
|
|||||||
|
|
||||||
if (psbParams.verifReporter == nullptr) {
|
if (psbParams.verifReporter == nullptr) {
|
||||||
psbParams.verifReporter =
|
psbParams.verifReporter =
|
||||||
ObjectManager::instance()->get<VerificationReporterIF>(objects::TC_VERIFICATOR);
|
ObjectManager::instance()->get<VerificationReporterIF>(objects::VERIFICATION_REPORTER);
|
||||||
if (psbParams.verifReporter == nullptr) {
|
if (psbParams.verifReporter == nullptr) {
|
||||||
return ObjectManagerIF::CHILD_INIT_FAILED;
|
return ObjectManagerIF::CHILD_INIT_FAILED;
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "fsfw/tmtcservices/PusVerificationReport.h"
|
#include "fsfw/tmtcservices/PusVerificationReport.h"
|
||||||
|
|
||||||
object_id_t VerificationReporter::DEFAULT_RECEIVER = objects::PUS_SERVICE_1_VERIFICATION;
|
object_id_t VerificationReporter::DEFAULT_RECEIVER = objects::PUS_SERVICE_1_VERIFICATION;
|
||||||
object_id_t VerificationReporter::DEFAULT_REPORTER = objects::TC_VERIFICATOR;
|
object_id_t VerificationReporter::DEFAULT_REPORTER = objects::VERIFICATION_REPORTER;
|
||||||
|
|
||||||
VerificationReporter::VerificationReporter(object_id_t objectId, AcceptsVerifyMessageIF* receiver)
|
VerificationReporter::VerificationReporter(object_id_t objectId, AcceptsVerifyMessageIF* receiver)
|
||||||
: SystemObject(objectId) {
|
: SystemObject(objectId) {
|
||||||
|
@ -211,7 +211,7 @@ TEST_CASE("Pus Service Base", "[pus-service-base]") {
|
|||||||
SECTION("Auto Initialize Verification Reporter") {
|
SECTION("Auto Initialize Verification Reporter") {
|
||||||
psbParams.verifReporter = nullptr;
|
psbParams.verifReporter = nullptr;
|
||||||
psbParams.objectId = 1;
|
psbParams.objectId = 1;
|
||||||
object_id_t reporterId = objects::TC_VERIFICATOR;
|
object_id_t reporterId = objects::VERIFICATION_REPORTER;
|
||||||
PusVerificationReporterMock otherReporter(reporterId);
|
PusVerificationReporterMock otherReporter(reporterId);
|
||||||
auto psb2 = PsbMock(psbParams);
|
auto psb2 = PsbMock(psbParams);
|
||||||
REQUIRE(psb2.initialize() == result::OK);
|
REQUIRE(psb2.initialize() == result::OK);
|
||||||
|
Loading…
Reference in New Issue
Block a user