CTRE_Phoenix 5.20.2
|
Public Member Functions | |
VictorSPXSimCollection (BaseMotorController motorController) | |
ErrorCode | getLastError () |
double | getMotorOutputLeadVoltage () |
ErrorCode | setBusVoltage (double vbat) |
Collection of simulation commands available to a VictorSPX motor controller.
Use the getSimCollection() routine inside your motor controller to create the respective sim collection.
|
inline |
Constructor for VictorSPXSimCollection
motorController | Motor Controller to connect Collection to |
|
inline |
Gets the last error generated by this object. Not all functions return an error code but can potentially report errors. This function can be used to retrieve those error codes.
|
inline |
Gets the simulated output voltage across M+ and M- for the motor.
|
inline |
Sets the simulated bus voltage of the VictorSPX.
The minimum allowed bus voltage is 4 V - values below this will be promoted to 4 V.
vbat | the bus voltage in volts |