optimization and printout improvements
This commit is contained in:
parent
088bc35301
commit
5b96161331
@ -287,14 +287,20 @@ ReturnValue_t LocalDataPoolManager::subscribeForUpdatePackets(sid_t sid,
|
|||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t LocalDataPoolManager::subscribeForUpdateMessages(sid_t sid,
|
ReturnValue_t LocalDataPoolManager::subscribeForSetUpdateMessages(
|
||||||
object_id_t destinationObject, MessageQueueId_t targetQueueId) {
|
const uint32_t setId, object_id_t destinationObject,
|
||||||
|
MessageQueueId_t targetQueueId, bool generateSnapshot) {
|
||||||
struct HkReceiver hkReceiver;
|
struct HkReceiver hkReceiver;
|
||||||
hkReceiver.dataType = DataType::DATA_SET;
|
hkReceiver.dataType = DataType::DATA_SET;
|
||||||
hkReceiver.dataId.sid = sid;
|
hkReceiver.dataId.sid = sid_t(this->getOwner()->getObjectId(), setId);
|
||||||
hkReceiver.destinationQueue = targetQueueId;
|
hkReceiver.destinationQueue = targetQueueId;
|
||||||
hkReceiver.objectId = destinationObject;
|
hkReceiver.objectId = destinationObject;
|
||||||
hkReceiver.reportingType = ReportingType::UPDATE_NOTIFICATION;
|
if(generateSnapshot) {
|
||||||
|
hkReceiver.reportingType = ReportingType::UPDATE_SNAPSHOT;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
hkReceiver.reportingType = ReportingType::UPDATE_NOTIFICATION;
|
||||||
|
}
|
||||||
|
|
||||||
hkReceiversMap.push_back(hkReceiver);
|
hkReceiversMap.push_back(hkReceiver);
|
||||||
|
|
||||||
@ -302,15 +308,20 @@ ReturnValue_t LocalDataPoolManager::subscribeForUpdateMessages(sid_t sid,
|
|||||||
return HasReturnvaluesIF::RETURN_OK;
|
return HasReturnvaluesIF::RETURN_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ReturnValue_t LocalDataPoolManager::subscribeForUpdateMessages(
|
ReturnValue_t LocalDataPoolManager::subscribeForVariableUpdateMessages(
|
||||||
lp_id_t localPoolId, object_id_t destinationObject,
|
const lp_id_t localPoolId, object_id_t destinationObject,
|
||||||
MessageQueueId_t targetQueueId) {
|
MessageQueueId_t targetQueueId, bool generateSnapshot) {
|
||||||
struct HkReceiver hkReceiver;
|
struct HkReceiver hkReceiver;
|
||||||
hkReceiver.dataType = DataType::LOCAL_POOL_VARIABLE;
|
hkReceiver.dataType = DataType::LOCAL_POOL_VARIABLE;
|
||||||
hkReceiver.dataId.localPoolId = localPoolId;
|
hkReceiver.dataId.localPoolId = localPoolId;
|
||||||
hkReceiver.destinationQueue = targetQueueId;
|
hkReceiver.destinationQueue = targetQueueId;
|
||||||
hkReceiver.objectId = destinationObject;
|
hkReceiver.objectId = destinationObject;
|
||||||
hkReceiver.reportingType = ReportingType::UPDATE_NOTIFICATION;
|
if(generateSnapshot) {
|
||||||
|
hkReceiver.reportingType = ReportingType::UPDATE_SNAPSHOT;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
hkReceiver.reportingType = ReportingType::UPDATE_NOTIFICATION;
|
||||||
|
}
|
||||||
|
|
||||||
hkReceiversMap.push_back(hkReceiver);
|
hkReceiversMap.push_back(hkReceiver);
|
||||||
|
|
||||||
|
@ -102,8 +102,8 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief Subscribe for the generation of periodic packets.
|
* @brief Subscribe for the generation of periodic packets.
|
||||||
* @details
|
* @details
|
||||||
* This will most commonly be used to generate housekeeping packets
|
* This subscription mechanism will generally be used by the data creator
|
||||||
* which are downlinked directly.
|
* to generate housekeeping packets which are downlinked directly.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ReturnValue_t subscribeForPeriodicPacket(sid_t sid, bool enableReporting,
|
ReturnValue_t subscribeForPeriodicPacket(sid_t sid, bool enableReporting,
|
||||||
@ -113,6 +113,8 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief Subscribe for the generation of packets if the dataset
|
* @brief Subscribe for the generation of packets if the dataset
|
||||||
* is marked as changed.
|
* is marked as changed.
|
||||||
|
* @details
|
||||||
|
* This subscription mechanism will generally be used by the data creator.
|
||||||
* @param sid
|
* @param sid
|
||||||
* @param isDiagnostics
|
* @param isDiagnostics
|
||||||
* @param packetDestination
|
* @param packetDestination
|
||||||
@ -125,22 +127,40 @@ public:
|
|||||||
/**
|
/**
|
||||||
* @brief Subscribe for a notification message which will be sent
|
* @brief Subscribe for a notification message which will be sent
|
||||||
* if a dataset has changed.
|
* if a dataset has changed.
|
||||||
* @param sid
|
* @details
|
||||||
|
* This subscription mechanism will generally be used internally by
|
||||||
|
* other software components.
|
||||||
|
* @param setId Set ID of the set to receive update messages from.
|
||||||
|
* @param destinationObject
|
||||||
* @param targetQueueId
|
* @param targetQueueId
|
||||||
|
* @param generateSnapshot If this is set to true, a copy of the current
|
||||||
|
* data with a timestamp will be generated and sent via message.
|
||||||
|
* Otherwise, only an notification message is sent.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ReturnValue_t subscribeForUpdateMessages(sid_t sid,
|
ReturnValue_t subscribeForSetUpdateMessages(const uint32_t setId,
|
||||||
object_id_t destinationObject, MessageQueueId_t targetQueueId);
|
object_id_t destinationObject,
|
||||||
|
MessageQueueId_t targetQueueId,
|
||||||
|
bool generateSnapshot);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Subscribe for an notification message which will be sent if a
|
* @brief Subscribe for an notification message which will be sent if a
|
||||||
* pool variable has changed.
|
* pool variable has changed.
|
||||||
* @param sid
|
* @details
|
||||||
|
* This subscription mechanism will generally be used internally by
|
||||||
|
* other software components.
|
||||||
|
* @param localPoolId Pool ID of the pool variable
|
||||||
|
* @param destinationObject
|
||||||
* @param targetQueueId
|
* @param targetQueueId
|
||||||
|
* @param generateSnapshot If this is set to true, a copy of the current
|
||||||
|
* data with a timestamp will be generated and sent via message.
|
||||||
|
* Otherwise, only an notification message is sent.
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
ReturnValue_t subscribeForUpdateMessages(lp_id_t localPoolId,
|
ReturnValue_t subscribeForVariableUpdateMessages(const lp_id_t localPoolId,
|
||||||
object_id_t destinationObject, MessageQueueId_t targetQueueId);
|
object_id_t destinationObject,
|
||||||
|
MessageQueueId_t targetQueueId,
|
||||||
|
bool generateSnapshot);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Non-Diagnostics packets usually have a lower minimum sampling frequency
|
* Non-Diagnostics packets usually have a lower minimum sampling frequency
|
||||||
|
Loading…
x
Reference in New Issue
Block a user