CTRE_Phoenix  5.19.4
ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration Struct Reference

#include <StatorCurrentLimitConfiguration.h>

Public Member Functions

 StatorCurrentLimitConfiguration ()
 
 StatorCurrentLimitConfiguration (const double *doubleArray, int doubleArraySz)
 
 StatorCurrentLimitConfiguration (bool enable, double currentLimit, double triggerThresholdCurrent, double triggerThresholdTime)
 
std::string ToString () const
 
std::vector< double > ToArray () const
 
void Deserialize (const double *doubles, int doubleCnt)
 
bool Equals (const StatorCurrentLimitConfiguration &rhs) const
 

Public Attributes

bool enable = false
 
double currentLimit = 0
 
double triggerThresholdCurrent = 0
 
double triggerThresholdTime = 0
 

Detailed Description

Describes the desired stator current limiting behavior.

Constructor & Destructor Documentation

◆ StatorCurrentLimitConfiguration()

ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration::StatorCurrentLimitConfiguration ( )
inline

Default c'tor. Because currentLimit is zero, limiting id disabled.

Member Function Documentation

◆ ToString()

std::string ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration::ToString ( ) const
inline
Returns
string representation of current faults tripped

Member Data Documentation

◆ currentLimit

double ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration::currentLimit = 0

The "holding" current (amperes) to limit to when feature is activated.

◆ enable

bool ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration::enable = false

True/False to enable/disable limit feature.

◆ triggerThresholdCurrent

double ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration::triggerThresholdCurrent = 0

Current must exceed this threshold (amperes) before limiting occurs. If this value is less than currentLimit, then currentLimit is used as the threshold.

◆ triggerThresholdTime

double ctre::phoenix::motorcontrol::StatorCurrentLimitConfiguration::triggerThresholdTime = 0

How long current must exceed threshold (seconds) before limiting occurs.


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