CTRE Phoenix 6 C++ 25.0.0-beta-4
Loading...
Searching...
No Matches
ctre::phoenix6::AllTimestamps Class Reference

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 TimestampGetBestTimestamp () const
 Get the most accurate timestamp available.
 
const TimestampGetSystemTimestamp () const
 Get the timestamp as reported by the Timestamp::TimestampSource::System source.
 
const TimestampGetCANivoreTimestamp () const
 Get the timestamp as reported by the Timestamp::TimestampSource::CANivore source.
 
const TimestampGetDeviceTimestamp () const
 Get the timestamp as reported by the Timestamp::TimestampSource::Device source.
 

Detailed Description

A collection of timestamps for a received signal.

Member Function Documentation

◆ GetBestTimestamp()

const Timestamp & ctre::phoenix6::AllTimestamps::GetBestTimestamp ( ) const
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.

Returns
The most accurate timestamp available

◆ GetCANivoreTimestamp()

const Timestamp & ctre::phoenix6::AllTimestamps::GetCANivoreTimestamp ( ) const
inline

Get the timestamp as reported by the Timestamp::TimestampSource::CANivore source.

Returns
Timestamp as reported by the CANivore

◆ GetDeviceTimestamp()

const Timestamp & ctre::phoenix6::AllTimestamps::GetDeviceTimestamp ( ) const
inline

Get the timestamp as reported by the Timestamp::TimestampSource::Device source.

Returns
Timestamp as reported by the device

◆ GetSystemTimestamp()

const Timestamp & ctre::phoenix6::AllTimestamps::GetSystemTimestamp ( ) const
inline

Get the timestamp as reported by the Timestamp::TimestampSource::System source.

Returns
Timestamp as reported by the System

◆ Update()

void ctre::phoenix6::AllTimestamps::Update ( const Timestamp & newSystemTimestamp,
const Timestamp & newCanivoreTimestamp,
const Timestamp & newDeviceTimestamp )
inline

The documentation for this class was generated from the following file: