Refactor TMTC Stack, improve test framework #655
@ -298,7 +298,7 @@ ReturnValue_t CommandingServiceBase::sendTmPacket(uint8_t subservice, const uint
|
||||
|
||||
ReturnValue_t CommandingServiceBase::sendTmPacket(uint8_t subservice, object_id_t objectId,
|
||||
const uint8_t* data, size_t dataLen) {
|
||||
telemetry::SourceDataWithObjectIdPrefix dataWithObjId(objectId, data, dataLen);
|
||||
telemetry::DataWithObjectIdPrefix dataWithObjId(objectId, data, dataLen);
|
||||
tmStoreHelper.preparePacket(service, subservice, tmPacketCounter);
|
||||
tmStoreHelper.setSourceDataSerializable(&dataWithObjId);
|
||||
ReturnValue_t result = telemetry::storeAndSendTmPacket(tmStoreHelper, tmSendHelper);
|
||||
|
@ -9,9 +9,9 @@ namespace telemetry {
|
||||
|
||||
ReturnValue_t storeAndSendTmPacket(TmStoreHelper& storeHelper, TmSendHelper& sendHelper);
|
||||
|
||||
class SourceDataWithObjectIdPrefix : public SerializeIF {
|
||||
class DataWithObjectIdPrefix : public SerializeIF {
|
||||
public:
|
||||
SourceDataWithObjectIdPrefix(object_id_t objectId, const uint8_t* srcData, size_t srcDataLen)
|
||||
DataWithObjectIdPrefix(object_id_t objectId, const uint8_t* srcData, size_t srcDataLen)
|
||||
: objectId(objectId), srcData(srcData), srcDataLen(srcDataLen) {}
|
||||
ReturnValue_t serialize(uint8_t** buffer, size_t* size, size_t maxSize,
|
||||
Endianness streamEndianness) const override {
|
||||
|
Loading…
Reference in New Issue
Block a user