13#include "ctre/phoenix/motorcontrol/can/TalonFX.h"
14#include "ctre/phoenix/motorcontrol/can/WPI_BaseMotorController.h"
15#include "ctre/phoenix/platform/Platform.h"
16#include "ctre/phoenix/WPI_CallbackHelper.h"
22 #pragma warning(disable : 4250)
27namespace motorcontrol {
43 WPI_TalonFX(
int deviceNumber, std::string
const &canbus =
"");
51 virtual void Set(
double value);
67 hal::SimDevice m_simMotor;
68 hal::SimDouble m_simPercOut;
69 hal::SimDouble m_simMotorOutputLeadVoltage;
70 hal::SimDouble m_simSupplyCurrent;
71 hal::SimDouble m_simMotorCurrent;
72 hal::SimDouble m_simVbat;
74 hal::SimDevice m_simIntegSens;
75 hal::SimDouble m_simIntegSensPos;
76 hal::SimDouble m_simIntegSensAbsPos;
77 hal::SimDouble m_simIntegSensRawPos;
78 hal::SimDouble m_simIntegSensVel;
80 hal::SimDevice m_simFwdLim;
81 hal::SimBoolean m_simFwdLimInit;
82 hal::SimBoolean m_simFwdLimInput;
83 hal::SimBoolean m_simFwdLimValue;
85 hal::SimDevice m_simRevLim;
86 hal::SimBoolean m_simRevLimInit;
87 hal::SimBoolean m_simRevLimInput;
88 hal::SimBoolean m_simRevLimValue;
90 static void OnValueChanged(
const char* name,
void* param, HAL_SimValueHandle handle,
91 HAL_Bool readonly,
const struct HAL_Value* value);
92 static void OnPeriodic(
void* param);
Definition: TalonFX.h:153
Definition: WPI_BaseMotorController.h:56
Definition: WPI_TalonFX.h:35
WPI_TalonFX(int deviceNumber, std::string const &canbus="")
virtual ctre::phoenix::ErrorCode ConfigSelectedFeedbackSensor(FeedbackDevice feedbackDevice, int pidIdx=0, int timeoutMs=0)
virtual void Set(ControlMode mode, double value)
virtual void SetInverted(InvertType invertType)
virtual void Set(ControlMode mode, double demand0, DemandType demand1Type, double demand1)
virtual void Set(double value)
virtual void SetVoltage(units::volt_t output)
virtual ctre::phoenix::ErrorCode ConfigSelectedFeedbackSensor(RemoteFeedbackDevice feedbackDevice, int pidIdx=0, int timeoutMs=0)
virtual void SetInverted(bool bInvert)
ControlMode
Definition: ControlMode.h:10
DemandType
Definition: DemandType.h:9
InvertType
Definition: InvertType.h:13
RemoteFeedbackDevice
Definition: FeedbackDevice.h:169
FeedbackDevice
Definition: FeedbackDevice.h:13
TalonFXControlMode
Definition: ControlMode.h:55
TalonFXInvertType
Definition: InvertType.h:24
ErrorCode
Definition: ErrorCode.h:12
Definition: ErrorCode.h:5