1
0
forked from fsfw/fsfw

updating code from Flying Laptop

This is the framework of Flying Laptop OBSW version A.13.0.
This commit is contained in:
2018-07-12 16:29:32 +02:00
parent 1d22a6c97e
commit 575f70ba03
395 changed files with 12807 additions and 8404 deletions

View File

@ -33,17 +33,17 @@ ReturnValue_t LimitViolationReporter::sendLimitViolationReport(const SerializeIF
}
CommandMessage report;
MonitoringMessage::setLimitViolationReport(&report, storeId);
return reportQueue.sendToDefault(&report);
return MessageQueueSenderIF::sendMessage(reportQueue, &report);
}
ReturnValue_t LimitViolationReporter::checkClassLoaded() {
if (reportQueue.getDefaultDestination() == 0) {
if (reportQueue == 0) {
ReceivesMonitoringReportsIF* receiver = objectManager->get<
ReceivesMonitoringReportsIF>(objects::PUS_MONITORING_SERVICE);
ReceivesMonitoringReportsIF>(reportingTarget);
if (receiver == NULL) {
return ObjectManagerIF::NOT_FOUND;
}
reportQueue.setDefaultDestination(receiver->getCommandQueue());
reportQueue = receiver->getCommandQueue();
}
if (ipcStore == NULL) {
ipcStore = objectManager->get<StorageManagerIF>(objects::IPC_STORE);
@ -55,5 +55,6 @@ ReturnValue_t LimitViolationReporter::checkClassLoaded() {
}
//Lazy initialization.
MessageQueueSender LimitViolationReporter::reportQueue;
MessageQueueId_t LimitViolationReporter::reportQueue = 0;
StorageManagerIF* LimitViolationReporter::ipcStore = NULL;
object_id_t LimitViolationReporter::reportingTarget = 0;