9 namespace motorcontrol {
19 namespace motorcontrol {
Collection of simulation commands available to a TalonFX motor controller.
Definition: TalonFXSimCollection.h:35
ErrorCode GetLastError()
Gets the last error generated by this object.
ErrorCode SetLimitFwd(bool isClosed)
Sets the simulated forward limit switch of the TalonFX.
ErrorCode SetStatorCurrent(double currA)
Sets the simulated stator current of the TalonFX.
ErrorCode SetIntegratedSensorVelocity(int newVel)
Sets the simulated integrated sensor velocity of the TalonFX.
double GetMotorOutputLeadVoltage()
Gets the simulated output voltage across M+ and M- for the motor.
TalonFXSimCollection(ctre::phoenix::motorcontrol::can::BaseTalon &motorController)
Constructor for TalonFXSimCollection.
ErrorCode SetLimitRev(bool isClosed)
Sets the simulated reverse limit switch of the TalonFX.
ErrorCode AddIntegratedSensorPosition(int dPos)
Adds to the simulated integrated sensor position of the TalonFX.
ErrorCode SetSupplyCurrent(double currA)
Sets the simulated supply current of the TalonFX.
ErrorCode SetBusVoltage(double vbat)
Sets the simulated bus voltage of the TalonFX.
ErrorCode SetIntegratedSensorRawPosition(int newPos)
Sets the simulated raw integrated sensor position of the TalonFX.
CTRE Talon SRX Motor Controller when used on CAN Bus.
Definition: BaseTalon.h:267
ErrorCode
Definition: ErrorCode.h:13
namespace ctre
Definition: paramEnum.h:5