now it compiles
This commit is contained in:
parent
5a4f453aaa
commit
958db291e8
@ -7,6 +7,7 @@
|
||||
#include "clockDefinitions.h"
|
||||
#include "../returnvalues/HasReturnvaluesIF.h"
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
bool operator<(const timeval& lhs, const timeval& rhs);
|
||||
bool operator<=(const timeval& lhs, const timeval& rhs);
|
||||
|
@ -139,8 +139,9 @@ public:
|
||||
static bool isOlderThan(const TmPacketInformation* packet, const timeval* cmpTime){
|
||||
if(packet->isValid()){
|
||||
timeval packetTime = {0,0};
|
||||
uint32_t foundlen = 0;
|
||||
CCSDSTime::convertFromCcsds(&packetTime,&packet->rawTimestamp[0],&foundlen,sizeof(rawTimestamp));
|
||||
size_t foundlen = 0;
|
||||
CCSDSTime::convertFromCcsds(&packetTime,
|
||||
&packet->rawTimestamp[0],&foundlen,sizeof(rawTimestamp));
|
||||
if(packetTime <= *cmpTime){
|
||||
return true;
|
||||
}
|
||||
@ -151,8 +152,9 @@ public:
|
||||
static bool isNewerThan(const TmPacketInformation* packet, const timeval* cmpTime){
|
||||
if(packet->isValid()){
|
||||
timeval packetTime = {0,0};
|
||||
uint32_t foundlen = 0;
|
||||
CCSDSTime::convertFromCcsds(&packetTime,&packet->rawTimestamp[0],&foundlen,sizeof(rawTimestamp));
|
||||
size_t foundlen = 0;
|
||||
CCSDSTime::convertFromCcsds(&packetTime,&packet->rawTimestamp[0],
|
||||
&foundlen,sizeof(rawTimestamp));
|
||||
if(packetTime >= *cmpTime){
|
||||
return true;
|
||||
}
|
||||
@ -204,8 +206,9 @@ public:
|
||||
|
||||
timeval getTime() const {
|
||||
timeval packetTime = {0,0};
|
||||
uint32_t foundlen = 0;
|
||||
CCSDSTime::convertFromCcsds(&packetTime,&this->rawTimestamp[0],&foundlen,sizeof(rawTimestamp));
|
||||
size_t foundlen = 0;
|
||||
CCSDSTime::convertFromCcsds(&packetTime, &this->rawTimestamp[0],
|
||||
&foundlen,sizeof(rawTimestamp));
|
||||
return packetTime;
|
||||
}
|
||||
|
||||
|
@ -74,7 +74,7 @@ bool TmPacketBase::checkAndSetStamper() {
|
||||
}
|
||||
|
||||
ReturnValue_t TmPacketBase::getPacketTime(timeval* timestamp) const {
|
||||
uint32_t tempSize = 0;
|
||||
size_t tempSize = 0;
|
||||
return CCSDSTime::convertFromCcsds(timestamp, tmData->data_field.time,
|
||||
&tempSize, sizeof(tmData->data_field.time));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user