WPILibC++ 2024.3.2
nt::TimestampedUnit< T > Struct Template Reference

Timestamped unit. More...

#include <networktables/UnitTopic.h>

Public Member Functions

 TimestampedUnit ()=default
 
 TimestampedUnit (int64_t time, int64_t serverTime, T value)
 

Public Attributes

int64_t time = 0
 Time in local time base. More...
 
int64_t serverTime = 0
 Time in server time base. More...
 
value = {}
 Value. More...
 

Detailed Description

template<typename T>
struct nt::TimestampedUnit< T >

Timestamped unit.

Template Parameters
Tunit type, e.g. units::meter_t

Constructor & Destructor Documentation

◆ TimestampedUnit() [1/2]

template<typename T >
nt::TimestampedUnit< T >::TimestampedUnit ( )
default

◆ TimestampedUnit() [2/2]

template<typename T >
nt::TimestampedUnit< T >::TimestampedUnit ( int64_t  time,
int64_t  serverTime,
value 
)
inline

Member Data Documentation

◆ serverTime

template<typename T >
int64_t nt::TimestampedUnit< T >::serverTime = 0

Time in server time base.

May be 0 or 1 for locally set values.

◆ time

template<typename T >
int64_t nt::TimestampedUnit< T >::time = 0

Time in local time base.

◆ value

template<typename T >
T nt::TimestampedUnit< T >::value = {}

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