CTRE_Phoenix  5.19.4
ctre::phoenix::motorcontrol::VictorSPXSimCollection Class Reference

#include <VictorSPXSimCollection.h>

Public Member Functions

 VictorSPXSimCollection (ctre::phoenix::motorcontrol::can::BaseMotorController &motorController)
 
ErrorCode SetBusVoltage (double vbat)
 

Detailed Description

Collection of simulation commands available to a VictorSPX motor controller.

Use the getSimCollection() routine inside your motor controller to create a sim collection.

Constructor & Destructor Documentation

◆ VictorSPXSimCollection()

ctre::phoenix::motorcontrol::VictorSPXSimCollection::VictorSPXSimCollection ( ctre::phoenix::motorcontrol::can::BaseMotorController motorController)

Constructor for VictorSPXSimCollection

Parameters
motorControllerVictorSPX Motor Controller to connect Collection to

Member Function Documentation

◆ SetBusVoltage()

ErrorCode ctre::phoenix::motorcontrol::VictorSPXSimCollection::SetBusVoltage ( double  vbat)

Sets the simulated bus voltage of the VictorSPX.

Parameters
vbatthe bus voltage
Returns
error code

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