CTRE Phoenix 6 C++ 25.0.0-beta-4
|
A collection of timestamps for a received signal. More...
#include <ctre/phoenix6/Timestamp.hpp>
Public Member Functions | |
void | Update (const Timestamp &newSystemTimestamp, const Timestamp &newCanivoreTimestamp, const Timestamp &newDeviceTimestamp) |
const Timestamp & | GetBestTimestamp () const |
Get the most accurate timestamp available. | |
const Timestamp & | GetSystemTimestamp () const |
Get the timestamp as reported by the Timestamp::TimestampSource::System source. | |
const Timestamp & | GetCANivoreTimestamp () const |
Get the timestamp as reported by the Timestamp::TimestampSource::CANivore source. | |
const Timestamp & | GetDeviceTimestamp () const |
Get the timestamp as reported by the Timestamp::TimestampSource::Device source. | |
A collection of timestamps for a received signal.
|
inline |
Get the most accurate timestamp available.
The timestamp sources from most to least accurate are:
Note that some of these sources may not be available.
|
inline |
Get the timestamp as reported by the Timestamp::TimestampSource::CANivore source.
|
inline |
Get the timestamp as reported by the Timestamp::TimestampSource::Device source.
|
inline |
Get the timestamp as reported by the Timestamp::TimestampSource::System source.
|
inline |