Loading [MathJax]/extensions/tex2jax.js
CTRE Phoenix 6 C++ 23.2.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ctre::phoenix6 Namespace Reference

Namespaces

namespace  configs
 
namespace  controls
 
namespace  hardware
 
namespace  networking
 
namespace  signals
 
namespace  sim
 
namespace  spns
 
namespace  wpiutils
 

Classes

class  AllTimestamps
 A collection of timestamps for a received signal. More...
 
class  BaseStatusSignal
 Class that provides operations to retrieve information about a status signal. More...
 
class  ISerializable
 
struct  SignalMeasurement
 Information from a single measurement of a status signal. More...
 
class  StatusSignal
 Represents a status signal with data of type T, and operations available to retrieve information about the signal. More...
 
class  Timestamp
 Information about the timestamp of a signal. More...
 

Typedefs

using BaseStatusSignalValue = BaseStatusSignal
 
template<typename T >
using StatusSignalValue = StatusSignal< T >
 

Functions

CTREXPORT double GetCurrentTimeSeconds ()
 Get the current timestamp in seconds. More...
 
CTREXPORT bool IsSimulation ()
 Get whether the program is running in simulation. More...
 

Typedef Documentation

◆ BaseStatusSignalValue

Deprecated:
BaseStatusSignalValue will be removed in 2024. Users should use BaseStatusSignal instead.

◆ StatusSignalValue

template<typename T >
using ctre::phoenix6::StatusSignalValue = typedef StatusSignal<T>
Deprecated:
StatusSignalValue will be removed in 2024. Users should use StatusSignal instead.

Function Documentation

◆ GetCurrentTimeSeconds()

CTREXPORT double ctre::phoenix6::GetCurrentTimeSeconds ( )

Get the current timestamp in seconds.

This will return the current time in seconds, this is the same time that is used in Timestamp.

Returns
Current time in seconds.

◆ IsSimulation()

CTREXPORT bool ctre::phoenix6::IsSimulation ( )

Get whether the program is running in simulation.

Returns
true if in simulation