Package com.ctre.phoenix6
Class AllTimestamps
java.lang.Object
com.ctre.phoenix6.AllTimestamps
- All Implemented Interfaces:
Cloneable
A collection of timestamps for a received signal.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
Get the most accurate timestamp available.Get the timestamp as reported by theTimestamp.TimestampSource.CANivore
source.Get the timestamp as reported by theTimestamp.TimestampSource.Device
source.Get the timestamp as reported by theTimestamp.TimestampSource.System
source.
-
Constructor Details
-
AllTimestamps
public AllTimestamps()
-
-
Method Details
-
getBestTimestamp
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
-
getSystemTimestamp
Get the timestamp as reported by theTimestamp.TimestampSource.System
source.- Returns:
- Timestamp as reported by the System
-
getCANivoreTimestamp
Get the timestamp as reported by theTimestamp.TimestampSource.CANivore
source.- Returns:
- Timestamp as reported by the CANivore
-
getDeviceTimestamp
Get the timestamp as reported by theTimestamp.TimestampSource.Device
source.- Returns:
- Timestamp as reported by the Device
-
clone
-