CTRE Phoenix 6 C++ 25.3.1
|
Contains all status signals for motor controllers that support external motors. More...
#include <ctre/phoenix6/hardware/traits/HasExternalMotor.hpp>
Public Member Functions | |
virtual | ~HasExternalMotor ()=default |
virtual StatusSignal< signals::ExternalMotorTempStatusValue > & | GetExternalMotorTempStatus (bool refresh=true)=0 |
Status of the temperature sensor of the external motor. | |
virtual StatusSignal< units::temperature::celsius_t > & | GetExternalMotorTemp (bool refresh=true)=0 |
Temperature of the external motor. | |
virtual StatusSignal< units::voltage::volt_t > & | GetFiveVRailVoltage (bool refresh=true)=0 |
The measured voltage of the 5V rail available on the JST and dataport connectors. | |
virtual StatusSignal< units::angle::turn_t > & | GetRawQuadraturePosition (bool refresh=true)=0 |
The raw position retrieved from the connected quadrature encoder. | |
virtual StatusSignal< units::angular_velocity::turns_per_second_t > & | GetRawQuadratureVelocity (bool refresh=true)=0 |
The raw velocity retrieved from the connected quadrature encoder. | |
virtual StatusSignal< units::angle::turn_t > & | GetRawPulseWidthPosition (bool refresh=true)=0 |
The raw position retrieved from the connected pulse-width encoder. | |
virtual StatusSignal< units::angular_velocity::turns_per_second_t > & | GetRawPulseWidthVelocity (bool refresh=true)=0 |
The raw velocity retrieved from the connected pulse-width encoder. | |
virtual StatusSignal< bool > & | GetFault_BridgeShort (bool refresh=true)=0 |
Bridge was disabled most likely due to a short in the motor leads. | |
virtual StatusSignal< bool > & | GetStickyFault_BridgeShort (bool refresh=true)=0 |
Bridge was disabled most likely due to a short in the motor leads. | |
virtual StatusSignal< bool > & | GetFault_HallSensorMissing (bool refresh=true)=0 |
Hall sensor signals are invalid. | |
virtual StatusSignal< bool > & | GetStickyFault_HallSensorMissing (bool refresh=true)=0 |
Hall sensor signals are invalid. | |
virtual StatusSignal< bool > & | GetFault_DriveDisabledHallSensor (bool refresh=true)=0 |
Hall sensor signals are invalid during motor drive, so motor was disabled. | |
virtual StatusSignal< bool > & | GetStickyFault_DriveDisabledHallSensor (bool refresh=true)=0 |
Hall sensor signals are invalid during motor drive, so motor was disabled. | |
virtual StatusSignal< bool > & | GetFault_MotorTempSensorMissing (bool refresh=true)=0 |
Motor temperature signal appears to not be connected. | |
virtual StatusSignal< bool > & | GetStickyFault_MotorTempSensorMissing (bool refresh=true)=0 |
Motor temperature signal appears to not be connected. | |
virtual StatusSignal< bool > & | GetFault_MotorTempSensorTooHot (bool refresh=true)=0 |
Motor temperature signal indicates motor is too hot. | |
virtual StatusSignal< bool > & | GetStickyFault_MotorTempSensorTooHot (bool refresh=true)=0 |
Motor temperature signal indicates motor is too hot. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_BridgeShort (units::time::second_t timeoutSeconds)=0 |
Clear sticky fault: Bridge was disabled most likely due to a short in the motor leads. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_BridgeShort ()=0 |
Clear sticky fault: Bridge was disabled most likely due to a short in the motor leads. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_HallSensorMissing (units::time::second_t timeoutSeconds)=0 |
Clear sticky fault: Hall sensor signals are invalid. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_HallSensorMissing ()=0 |
Clear sticky fault: Hall sensor signals are invalid. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_DriveDisabledHallSensor (units::time::second_t timeoutSeconds)=0 |
Clear sticky fault: Hall sensor signals are invalid during motor drive, so motor was disabled. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_DriveDisabledHallSensor ()=0 |
Clear sticky fault: Hall sensor signals are invalid during motor drive, so motor was disabled. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_MotorTempSensorMissing (units::time::second_t timeoutSeconds)=0 |
Clear sticky fault: Motor temperature signal appears to not be connected. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_MotorTempSensorMissing ()=0 |
Clear sticky fault: Motor temperature signal appears to not be connected. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_MotorTempSensorTooHot (units::time::second_t timeoutSeconds)=0 |
Clear sticky fault: Motor temperature signal indicates motor is too hot. | |
virtual ctre::phoenix::StatusCode | ClearStickyFault_MotorTempSensorTooHot ()=0 |
Clear sticky fault: Motor temperature signal indicates motor is too hot. | |
Contains all status signals for motor controllers that support external motors.
|
virtualdefault |
|
pure virtual |
Clear sticky fault: Bridge was disabled most likely due to a short in the motor leads.
This will wait up to 0.100 seconds (100ms) by default.
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Bridge was disabled most likely due to a short in the motor leads.
timeoutSeconds | Maximum time to wait up to in seconds. |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Hall sensor signals are invalid during motor drive, so motor was disabled.
Check hall sensor and cabling.
This will wait up to 0.100 seconds (100ms) by default.
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Hall sensor signals are invalid during motor drive, so motor was disabled.
Check hall sensor and cabling.
timeoutSeconds | Maximum time to wait up to in seconds. |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Hall sensor signals are invalid.
Check hall sensor and cabling. This fault can be used to detect when hall cable is unplugged.
This will wait up to 0.100 seconds (100ms) by default.
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Hall sensor signals are invalid.
Check hall sensor and cabling. This fault can be used to detect when hall cable is unplugged.
timeoutSeconds | Maximum time to wait up to in seconds. |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Motor temperature signal appears to not be connected.
This will wait up to 0.100 seconds (100ms) by default.
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Motor temperature signal appears to not be connected.
timeoutSeconds | Maximum time to wait up to in seconds. |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Motor temperature signal indicates motor is too hot.
This will wait up to 0.100 seconds (100ms) by default.
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Clear sticky fault: Motor temperature signal indicates motor is too hot.
timeoutSeconds | Maximum time to wait up to in seconds. |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Temperature of the external motor.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Status of the temperature sensor of the external motor.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Bridge was disabled most likely due to a short in the motor leads.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Hall sensor signals are invalid during motor drive, so motor was disabled.
Check hall sensor and cabling.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Hall sensor signals are invalid.
Check hall sensor and cabling. This fault can be used to detect when hall cable is unplugged.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Motor temperature signal appears to not be connected.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Motor temperature signal indicates motor is too hot.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
The measured voltage of the 5V rail available on the JST and dataport connectors.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
The raw position retrieved from the connected pulse-width encoder.
This is not affected by any config. In most situations, the user should instead configure the ExternalFeedbackSensorSource and use the regular position getter.
This signal must have its update frequency configured before it will have data.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
The raw velocity retrieved from the connected pulse-width encoder.
This is not affected by any config. In most situations, the user should instead configure the ExternalFeedbackSensorSource and use the regular velocity getter.
This signal must have its update frequency configured before it will have data.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
The raw position retrieved from the connected quadrature encoder.
This is only affected by the QuadratureEdgesPerRotation config. In most situations, the user should instead configure the ExternalFeedbackSensorSource and use the regular position getter.
This signal must have its update frequency configured before it will have data.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
The raw velocity retrieved from the connected quadrature encoder.
This is only affected by the QuadratureEdgesPerRotation config. In most situations, the user should instead configure the ExternalFeedbackSensorSource and use the regular velocity getter.
This signal must have its update frequency configured before it will have data.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Bridge was disabled most likely due to a short in the motor leads.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Hall sensor signals are invalid during motor drive, so motor was disabled.
Check hall sensor and cabling.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Hall sensor signals are invalid.
Check hall sensor and cabling. This fault can be used to detect when hall cable is unplugged.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Motor temperature signal appears to not be connected.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.
|
pure virtual |
Motor temperature signal indicates motor is too hot.
This refreshes and returns a cached StatusSignal object.
refresh | Whether to refresh the StatusSignal before returning it; defaults to true |
Implemented in ctre::phoenix6::hardware::core::CoreTalonFXS.