CTRE Phoenix 6 C++ 24.3.0
ctre::phoenix6 Namespace Reference

Namespaces

namespace  configs
 
namespace  controls
 
namespace  hardware
 
namespace  mechanisms
 
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  CANBus
 Static class for getting information about available CAN buses. More...
 
class  ISerializable
 
class  Orchestra
 Orchestra is used to play music through devices. More...
 
class  SignalLogger
 Static class for controlling the Phoenix 6 signal logger. More...
 
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...
 

Enumerations

enum class  MechanismState { OK , Disabled , RequiresUserAction }
 Possible states of a mechanism. More...
 

Functions

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

Enumeration Type Documentation

◆ MechanismState

enum class ctre::phoenix6::MechanismState
strong

Possible states of a mechanism.

Enumerator
OK 

The mechanism is running normally.

Disabled 

The mechanism is temporarily disabled due to an issue.

RequiresUserAction 

The mechanism is disabled and requires user action.

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