|
CTRE Phoenix 6 C++ 26.0.0-beta-1
|
Configs related to using an independent thermister for automatically disabling a motor when a threshold has been reached. More...
#include <ctre/phoenix6/configs/ExternalTempConfigs.hpp>
Public Member Functions | |
| constexpr | ExternalTempConfigs ()=default |
| constexpr ExternalTempConfigs & | WithThermistorMaxTemperature (units::temperature::celsius_t newThermistorMaxTemperature) |
| Modifies this configuration's ThermistorMaxTemperature parameter and returns itself for method-chaining and easier to use config API. | |
| constexpr ExternalTempConfigs & | WithThermistorBeta (units::temperature::kelvin_t newThermistorBeta) |
| Modifies this configuration's ThermistorBeta parameter and returns itself for method-chaining and easier to use config API. | |
| constexpr ExternalTempConfigs & | WithThermistorR0 (units::impedance::kiloohm_t newThermistorR0) |
| Modifies this configuration's ThermistorR0 parameter and returns itself for method-chaining and easier to use config API. | |
| constexpr ExternalTempConfigs & | WithTempSensorRequired (signals::TempSensorRequiredValue newTempSensorRequired) |
| Modifies this configuration's TempSensorRequired parameter and returns itself for method-chaining and easier to use config API. | |
| std::string | ToString () const override |
| std::string | Serialize () const final |
| ctre::phoenix::StatusCode | Deserialize (std::string const &to_deserialize) final |
Public Member Functions inherited from ctre::phoenix6::configs::ParentConfiguration | |
Public Member Functions inherited from ctre::phoenix6::ISerializable | |
Public Attributes | |
| units::temperature::celsius_t | ThermistorMaxTemperature = 0_degC |
| Threshold for thermal faulting a custom motor. | |
| units::temperature::kelvin_t | ThermistorBeta = 0_K |
| Beta K value for the connected NTC thermistor. | |
| units::impedance::kiloohm_t | ThermistorR0 = 0_kOhm |
| The thermistor resistance for the connected NTC thermistor as measured at 25'C. | |
| signals::TempSensorRequiredValue | TempSensorRequired = signals::TempSensorRequiredValue::Required |
| Whether a temperature sensor should be required for motor control. | |
Configs related to using an independent thermister for automatically disabling a motor when a threshold has been reached.
Configs are only used when Motor Arrangement is set to Custom Brushless Motor or Brushed. Note this feature will only work device is not FRC-Locked.
Users are responsible for ensuring that these configs are accurate to the motor. CTR Electronics is not responsible for damage caused by an incorrect custom motor configuration.
|
constexprdefault |
|
finalvirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
finalvirtual |
Implements ctre::phoenix6::ISerializable.
|
overridevirtual |
Implements ctre::phoenix6::configs::ParentConfiguration.
|
inlineconstexpr |
Modifies this configuration's TempSensorRequired parameter and returns itself for method-chaining and easier to use config API.
Whether a temperature sensor should be required for motor control. This configuration is ignored in FRC environments and defaults to Required.
| newTempSensorRequired | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's ThermistorBeta parameter and returns itself for method-chaining and easier to use config API.
Beta K value for the connected NTC thermistor. This can usually be determined by consulting the motor manufacturer data sheet.
| newThermistorBeta | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's ThermistorMaxTemperature parameter and returns itself for method-chaining and easier to use config API.
Threshold for thermal faulting a custom motor.
The motor controller will fault if the connected motor thermistor exceeds this value.
| newThermistorMaxTemperature | Parameter to modify |
|
inlineconstexpr |
Modifies this configuration's ThermistorR0 parameter and returns itself for method-chaining and easier to use config API.
The thermistor resistance for the connected NTC thermistor as measured at 25'C. This can usually be determined by consulting the motor manufacturer data sheet.
| newThermistorR0 | Parameter to modify |
| signals::TempSensorRequiredValue ctre::phoenix6::configs::ExternalTempConfigs::TempSensorRequired = signals::TempSensorRequiredValue::Required |
Whether a temperature sensor should be required for motor control.
This configuration is ignored in FRC environments and defaults to Required.
| units::temperature::kelvin_t ctre::phoenix6::configs::ExternalTempConfigs::ThermistorBeta = 0_K |
Beta K value for the connected NTC thermistor.
This can usually be determined by consulting the motor manufacturer data sheet.
| units::temperature::celsius_t ctre::phoenix6::configs::ExternalTempConfigs::ThermistorMaxTemperature = 0_degC |
Threshold for thermal faulting a custom motor.
The motor controller will fault if the connected motor thermistor exceeds this value.
| units::impedance::kiloohm_t ctre::phoenix6::configs::ExternalTempConfigs::ThermistorR0 = 0_kOhm |
The thermistor resistance for the connected NTC thermistor as measured at 25'C.
This can usually be determined by consulting the motor manufacturer data sheet.