CTRE Phoenix 6 C++ 26.0.0-beta-1
Loading...
Searching...
No Matches
ctre::phoenix6::AllTimestamps Class Referencefinal

A collection of timestamps for a received signal. More...

#include <ctre/phoenix6/Timestamp.hpp>

Public Member Functions

void Update (Timestamp const &newSystemTimestamp, Timestamp const &newCanivoreTimestamp, Timestamp const &newDeviceTimestamp)
 
Timestamp const & GetBestTimestamp () const
 Get the most accurate timestamp available.
 
Timestamp const & GetSystemTimestamp () const
 Get the timestamp as reported by the Timestamp::TimestampSource::System source.
 
Timestamp const & GetCANivoreTimestamp () const
 Get the timestamp as reported by the Timestamp::TimestampSource::CANivore source.
 
Timestamp const & GetDeviceTimestamp () 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()

Timestamp const & 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()

Timestamp const & 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()

Timestamp const & 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()

Timestamp const & 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 ( Timestamp const & newSystemTimestamp,
Timestamp const & newCanivoreTimestamp,
Timestamp const & newDeviceTimestamp )
inline

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