CTRE Phoenix 6 C++ 26.70.0-alpha-2
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

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

Gets 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
inlineconstexpr

Gets 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
inlineconstexpr

Gets 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
inlineconstexpr

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

Returns
Timestamp as reported by the System

◆ Update()

void ctre::phoenix6::AllTimestamps::Update ( Timestamp newSystemTimestamp,
Timestamp newCanivoreTimestamp,
Timestamp newDeviceTimestamp )
inlineconstexpr

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