Class SoftwarePLL

Class Documentation

class SoftwarePLL

Public Functions

inline ~SoftwarePLL()
bool pushIntoFifo(double curTimeStamp, uint64_t curtick)
double extraPolateRelativeTimeStamp(uint64_t tick)
bool getCorrectedTimeStamp(uint32_t &sec, uint32_t &nanoSec, uint32_t tick)
bool getCorrectedTimeStamp(uint32_t &sec, uint32_t &nanoSec, uint64_t tick)
bool convSystemtimeToLidarTimestamp(uint32_t systemtime_sec, uint32_t systemtime_nanosec, uint32_t &tick)
bool convSystemtimeToLidarTimestamp(uint32_t systemtime_sec, uint32_t systemtime_nanosec, uint64_t &tick)
bool getDemoFileData(std::string fileName, std::vector<uint32_t> &tickVec, std::vector<uint32_t> &secVec, std::vector<uint32_t> &nanoSecVec)
inline bool IsInitialized() const
inline void IsInitialized(bool val)
inline uint64_t FirstTick() const
inline void FirstTick(uint64_t val)
inline double FirstTimeStamp() const
inline void FirstTimeStamp(double val)
inline double InterpolationSlope() const
inline void InterpolationSlope(double val)
inline double AllowedTimeDeviation() const
inline void AllowedTimeDeviation(double val)
inline uint32_t ExtrapolationDivergenceCounter() const
inline void ExtrapolationDivergenceCounter(uint32_t val)
bool updatePLL(uint32_t sec, uint32_t nanoSec, uint32_t curtick)
bool updatePLL(uint32_t sec, uint32_t nanoSec, uint64_t curtick)
int findDiffInFifo(double diff, double tol)
inline void setTicksToTimestampMode(int val)

Public Members

size_t packets_dropped = 0
size_t packets_received = 0
double max_abs_delta_time = 0

Public Static Functions

static inline SoftwarePLL &instance()
static void testbed()

Public Static Attributes

static const int fifoSize = 7