CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::AllTimestamps Class Reference

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

#include <ctre/phoenixpro/Timestamp.hpp>

Public Member Functions

void Update (const Timestamp &newSystemTimestamp, const Timestamp &newCanivoreTimestamp, const Timestamp &newDeviceTimestamp)
 
const TimestampGetBestTimestamp () const
 Get the best timestamp available. More...
 
const TimestampGetSystemTimestamp () const
 Get the timestamp as reported by the system. More...
 
const TimestampGetCANivoreTimestamp () const
 Get the timestamp as reported by the CANivore. More...
 

Detailed Description

A collection of timestamps for a received signal.

Member Function Documentation

◆ GetBestTimestamp()

const Timestamp & ctre::phoenixpro::AllTimestamps::GetBestTimestamp ( ) const
inline

Get the best timestamp available.

Returns
Best available timestamp

◆ GetCANivoreTimestamp()

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

Get the timestamp as reported by the CANivore.

Returns
Timestamp::TimestampSource::CANivore timestamp

◆ GetSystemTimestamp()

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

Get the timestamp as reported by the system.

Returns
Timestamp::TimestampSource::System timestamp

◆ Update()

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

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