16#include "ctre/phoenix/platform/Platform.hpp"
22 #pragma warning(disable : 4250)
29namespace motorcontrol {
51 virtual void Set(
double value);
65 hal::SimDevice m_simMotor;
66 hal::SimDouble m_simPercOut;
67 hal::SimDouble m_simMotorOutputLeadVoltage;
68 hal::SimDouble m_simVbat;
70 static void OnValueChanged(
const char* name,
void* param, HAL_SimValueHandle handle,
71 HAL_Bool readonly,
const struct HAL_Value* value);
72 static void OnPeriodic(
void* param);
VEX Victor SPX Motor Controller when used on CAN Bus.
Definition VictorSPX.h:227
VEX Victor SPX Motor Controller when used on CAN Bus.
Definition WPI_BaseMotorController.h:57
VEX Victor SPX Motor Controller when used on CAN Bus.
Definition WPI_VictorSPX.h:37
virtual void Set(VictorSPXControlMode mode, double value)
virtual void Set(ControlMode mode, double demand0, DemandType demand1Type, double demand1)
virtual void Set(ControlMode mode, double value)
Sets the appropriate output on the talon, depending on the mode.
WPI_VictorSPX(WPI_VictorSPX const &)=delete
virtual void SetInverted(bool bInvert)
Inverts the hbridge output of the motor controller.
WPI_VictorSPX(int deviceNumber)
Constructor for a WPI_VictorSPX.
virtual void Set(VictorSPXControlMode mode, double demand0, DemandType demand1Type, double demand1)
virtual void Set(double value)
Common interface for setting the speed of a simple speed controller.
virtual ctre::phoenix::ErrorCode ConfigSelectedFeedbackSensor(RemoteFeedbackDevice feedbackDevice, int pidIdx=0, int timeoutMs=0)
Select the remote feedback device for the motor controller.
virtual void SetInverted(InvertType invertType)
Inverts the hbridge output of the motor controller in relation to the master if present.
WPI_VictorSPX & operator=(WPI_VictorSPX const &)=delete
virtual void SetVoltage(units::volt_t output)
Sets the voltage output of the SpeedController.
ControlMode
Choose the control mode for a motor controller.
Definition ControlMode.h:11
DemandType
How to interpret a demand value.
Definition DemandType.h:10
InvertType
Choose the invert type of the motor controller.
Definition InvertType.h:14
RemoteFeedbackDevice
Choose the remote feedback device for a motor controller.
Definition FeedbackDevice.h:131
VictorSPXControlMode
Choose the control mode for a Victor SPX.
Definition ControlMode.h:99
namespace phoenix
Definition CANCoderStatusFrame.h:5
ErrorCode
Definition ErrorCode.h:13
WPI Compliant CANcoder class.
Definition CANCoderStatusFrame.h:4