pus c working
This commit is contained in:
parent
ed186b04df
commit
fc7e401ddc
@ -45,7 +45,7 @@
|
|||||||
namespace fsfwconfig {
|
namespace fsfwconfig {
|
||||||
//! Default timestamp size. The default timestamp will be an eight byte CDC
|
//! Default timestamp size. The default timestamp will be an eight byte CDC
|
||||||
//! short timestamp.
|
//! short timestamp.
|
||||||
static constexpr uint8_t FSFW_MISSION_TIMESTAMP_SIZE = 8;
|
static constexpr uint8_t FSFW_MISSION_TIMESTAMP_SIZE = 7;
|
||||||
|
|
||||||
//! Configure the allocated pool sizes for the event manager.
|
//! Configure the allocated pool sizes for the event manager.
|
||||||
static constexpr size_t FSFW_EVENTMGMR_MATCHTREE_NODES = 240;
|
static constexpr size_t FSFW_EVENTMGMR_MATCHTREE_NODES = 240;
|
||||||
|
@ -72,8 +72,10 @@ void TmPacketPusC::initializeTmPacket(uint16_t apid, uint8_t service,
|
|||||||
tmData->dataField.versionTimeReferenceField = VERSION_NUMBER_BYTE | timeRefField;
|
tmData->dataField.versionTimeReferenceField = VERSION_NUMBER_BYTE | timeRefField;
|
||||||
tmData->dataField.serviceType = service;
|
tmData->dataField.serviceType = service;
|
||||||
tmData->dataField.serviceSubtype = subservice;
|
tmData->dataField.serviceSubtype = subservice;
|
||||||
tmData->dataField.subcounter = packetSubcounter;
|
tmData->dataField.subcounterMsb = packetSubcounter << 8 & 0xff;
|
||||||
tmData->dataField.destinationId = destinationId;
|
tmData->dataField.subcounterLsb = packetSubcounter & 0xff;
|
||||||
|
tmData->dataField.destinationIdMsb = destinationId << 8 & 0xff;
|
||||||
|
tmData->dataField.destinationIdLsb = destinationId & 0xff;
|
||||||
//Timestamp packet
|
//Timestamp packet
|
||||||
if (TmPacketBase::checkAndSetStamper()) {
|
if (TmPacketBase::checkAndSetStamper()) {
|
||||||
timeStamper->addTimeStamp(tmData->dataField.time,
|
timeStamper->addTimeStamp(tmData->dataField.time,
|
||||||
|
@ -22,8 +22,10 @@ struct PUSTmDataFieldHeaderPusC {
|
|||||||
uint8_t versionTimeReferenceField;
|
uint8_t versionTimeReferenceField;
|
||||||
uint8_t serviceType;
|
uint8_t serviceType;
|
||||||
uint8_t serviceSubtype;
|
uint8_t serviceSubtype;
|
||||||
uint16_t subcounter;
|
uint8_t subcounterMsb;
|
||||||
uint16_t destinationId;
|
uint8_t subcounterLsb;
|
||||||
|
uint8_t destinationIdMsb;
|
||||||
|
uint8_t destinationIdLsb;
|
||||||
uint8_t time[TimeStamperIF::MISSION_TIMESTAMP_SIZE];
|
uint8_t time[TimeStamperIF::MISSION_TIMESTAMP_SIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ TmPacketStoredPusC::TmPacketStoredPusC(uint16_t apid, uint8_t service,
|
|||||||
TmPacketStoredBase::checkAndReportLostTm();
|
TmPacketStoredBase::checkAndReportLostTm();
|
||||||
}
|
}
|
||||||
setData(p_data);
|
setData(p_data);
|
||||||
initializeTmPacket(apid, service, subservice, packetSubcounter);
|
initializeTmPacket(apid, service, subservice, packetSubcounter, destinationId, timeRefField);
|
||||||
uint8_t *putDataHere = getSourceData();
|
uint8_t *putDataHere = getSourceData();
|
||||||
size_t size = 0;
|
size_t size = 0;
|
||||||
if (header != NULL) {
|
if (header != NULL) {
|
||||||
|
Loading…
Reference in New Issue
Block a user