CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::configs::VoltageConfigs Class Reference

Voltage-specific configs. More...

#include <ctre/phoenixpro/configs/Configs.hpp>

Inheritance diagram for ctre::phoenixpro::configs::VoltageConfigs:
ctre::phoenixpro::configs::ParentConfiguration ctre::phoenixpro::ISerializable

Public Member Functions

std::string ToString () const
 
std::string Serialize () const
 
ctre::phoenix::StatusCode Deserialize (const std::string &string)
 
virtual std::string ToString () const =0
 
virtual ctre::phoenix::StatusCode Deserialize (const std::string &string)=0
 
virtual std::string Serialize () const =0
 

Public Attributes

double SupplyVoltageTimeConstant = 0
 The time constant (in seconds) of the low-pass filter for the supply voltage. More...
 
double PeakForwardVoltage = 16
 Maximum (forward) output during voltage based control modes. More...
 
double PeakReverseVoltage = -16
 Minimum (reverse) output during voltage based control modes. More...
 

Detailed Description

Voltage-specific configs.

Voltage-specific configs

Member Function Documentation

◆ Deserialize()

ctre::phoenix::StatusCode ctre::phoenixpro::configs::VoltageConfigs::Deserialize ( const std::string &  string)
inlinevirtual

◆ Serialize()

std::string ctre::phoenixpro::configs::VoltageConfigs::Serialize ( ) const
inlinevirtual

◆ ToString()

std::string ctre::phoenixpro::configs::VoltageConfigs::ToString ( ) const
inlinevirtual

Member Data Documentation

◆ PeakForwardVoltage

double ctre::phoenixpro::configs::VoltageConfigs::PeakForwardVoltage = 16

Maximum (forward) output during voltage based control modes.

Minimum Value: -16 Maximum Value: 16 Default Value: 16 Units: V

◆ PeakReverseVoltage

double ctre::phoenixpro::configs::VoltageConfigs::PeakReverseVoltage = -16

Minimum (reverse) output during voltage based control modes.

Minimum Value: -16 Maximum Value: 16 Default Value: -16 Units: V

◆ SupplyVoltageTimeConstant

double ctre::phoenixpro::configs::VoltageConfigs::SupplyVoltageTimeConstant = 0

The time constant (in seconds) of the low-pass filter for the supply voltage.

This impacts the filtering for the reported supply voltage, and any control strategies that use the supply voltage (such as voltage control on a motor controller).

Minimum Value: 0.0 Maximum Value: 0.1 Default Value: 0 Units: sec


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