1
0
forked from fsfw/fsfw

added additonal functions for tc packet base

This commit is contained in:
2020-05-15 18:23:57 +02:00
parent 5ac32b14f0
commit 237dd4a256
2 changed files with 13 additions and 1 deletions

View File

@ -87,3 +87,8 @@ void TcPacketBase::initializeTcPacket(uint16_t apid, uint16_t sequenceCount,
tcData->data_field.service_type = service;
tcData->data_field.service_subtype = subservice;
}
size_t TcPacketBase::calculateFullPacketLength(size_t appDataLen) {
return sizeof(CCSDSPrimaryHeader) + sizeof(PUSTcDataFieldHeader) +
appDataLen + TcPacketBase::CRC_SIZE;
}