CFDP Source Handler Testing #803
@ -155,7 +155,9 @@ ReturnValue_t LiveTmTask::handleGenericTmQueue(MessageQueueIF& queue, bool isCfd
|
|||||||
if (isCfdp and signals::CFDP_MSG_COUNTER > 0) {
|
if (isCfdp and signals::CFDP_MSG_COUNTER > 0) {
|
||||||
signals::CFDP_MSG_COUNTER--;
|
signals::CFDP_MSG_COUNTER--;
|
||||||
}
|
}
|
||||||
sif::debug << "CFDP msg counter: " << signals::CFDP_MSG_COUNTER << std::endl;
|
if (DEBUG_CFDP_TO_LIVE_TM_TASK) {
|
||||||
|
sif::debug << "LiveTmTask: CFDP message counter: " << signals::CFDP_MSG_COUNTER << std::endl;
|
||||||
|
}
|
||||||
store_address_t storeId = message.getStorageId();
|
store_address_t storeId = message.getStorageId();
|
||||||
const uint8_t* data = nullptr;
|
const uint8_t* data = nullptr;
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
@ -188,13 +190,17 @@ ReturnValue_t LiveTmTask::handleGenericTmQueue(MessageQueueIF& queue, bool isCfd
|
|||||||
void LiveTmTask::throttleCfdp() {
|
void LiveTmTask::throttleCfdp() {
|
||||||
throttlePeriodOngoing = true;
|
throttlePeriodOngoing = true;
|
||||||
signals::CFDP_CHANNEL_THROTTLE_SIGNAL = true;
|
signals::CFDP_CHANNEL_THROTTLE_SIGNAL = true;
|
||||||
sif::debug << "throttling CFDP" << std::endl;
|
if (DEBUG_CFDP_TO_LIVE_TM_TASK) {
|
||||||
|
sif::debug << "Throttling CFDP" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LiveTmTask::releaseCfdp() {
|
void LiveTmTask::releaseCfdp() {
|
||||||
throttlePeriodOngoing = false;
|
throttlePeriodOngoing = false;
|
||||||
signals::CFDP_CHANNEL_THROTTLE_SIGNAL = false;
|
signals::CFDP_CHANNEL_THROTTLE_SIGNAL = false;
|
||||||
sif::debug << "releasing CFDP" << std::endl;
|
if (DEBUG_CFDP_TO_LIVE_TM_TASK) {
|
||||||
|
sif::debug << "Releasing CFDP" << std::endl;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void LiveTmTask::updateBusyFlag() {
|
void LiveTmTask::updateBusyFlag() {
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
|
|
||||||
#include "eive/definitions.h"
|
#include "eive/definitions.h"
|
||||||
|
|
||||||
|
static constexpr bool DEBUG_CFDP_TO_LIVE_TM_TASK = false;
|
||||||
|
|
||||||
class LiveTmTask : public SystemObject,
|
class LiveTmTask : public SystemObject,
|
||||||
public HasModesIF,
|
public HasModesIF,
|
||||||
public ExecutableObjectIF,
|
public ExecutableObjectIF,
|
||||||
|
Loading…
Reference in New Issue
Block a user