13#include "ctre/phoenix/motorcontrol/can/VictorSPX.h"
14#include "ctre/phoenix/motorcontrol/can/WPI_BaseMotorController.h"
15#include "ctre/phoenix/platform/Platform.h"
16#include "ctre/phoenix/WPI_CallbackHelper.h"
21 #pragma warning(disable : 4250)
28namespace motorcontrol {
50 virtual void Set(
double value);
64 hal::SimDevice m_simMotor;
65 hal::SimDouble m_simPercOut;
66 hal::SimDouble m_simMotorOutputLeadVoltage;
67 hal::SimDouble m_simVbat;
69 static void OnValueChanged(
const char* name,
void* param, HAL_SimValueHandle handle,
70 HAL_Bool readonly,
const struct HAL_Value* value);
71 static void OnPeriodic(
void* param);
Definition: VictorSPX.h:226
Definition: WPI_BaseMotorController.h:56
Definition: WPI_VictorSPX.h:36
virtual void Set(ControlMode mode, double demand0, DemandType demand1Type, double demand1)
virtual void Set(ControlMode mode, double value)
virtual void SetInverted(bool bInvert)
WPI_VictorSPX(int deviceNumber)
virtual void Set(double value)
virtual ctre::phoenix::ErrorCode ConfigSelectedFeedbackSensor(RemoteFeedbackDevice feedbackDevice, int pidIdx=0, int timeoutMs=0)
virtual void SetInverted(InvertType invertType)
virtual void SetVoltage(units::volt_t output)
ControlMode
Definition: ControlMode.h:10
DemandType
Definition: DemandType.h:9
InvertType
Definition: InvertType.h:13
RemoteFeedbackDevice
Definition: FeedbackDevice.h:169
VictorSPXControlMode
Definition: ControlMode.h:143
Definition: ErrorCode.h:6
ErrorCode
Definition: ErrorCode.h:12
Definition: ErrorCode.h:5