11#include <wpi/units/angle.hpp>
12#include <wpi/units/angular_acceleration.hpp>
13#include <wpi/units/angular_velocity.hpp>
14#include <wpi/units/current.hpp>
15#include <wpi/units/voltage.hpp>
Class description for the Talon FXS motor controller.
Definition CoreTalonFXS.hpp:3530
ctre::phoenix::StatusCode SetRotorAcceleration(wpi::units::turns_per_second_squared_t rpss)
Sets the simulated rotor acceleration of the TalonFXS.
ctre::phoenix::StatusCode SetQuadratureVelocity(wpi::units::turns_per_second_t rps)
Sets the simulated quadrature velocity of the TalonFXS.
ctre::phoenix::StatusCode SetRawRotorPosition(wpi::units::turn_t rotations)
Sets the simulated raw rotor position of the TalonFXS.
TalonFXSSimState & operator=(TalonFXSSimState &&)=default
ctre::phoenix::StatusCode AddRotorPosition(wpi::units::turn_t dRotations)
Adds to the simulated rotor position of the TalonFXS.
wpi::units::ampere_t GetSupplyCurrent() const
Gets the simulated supply current of the TalonFXS.
TalonFXSSimState(hardware::core::CoreTalonFXS const &device, ChassisReference motorOrientation, ChassisReference extSensorOrientation)
Creates an object to control the state of the given hardware::TalonFXS.
int QuadratureEdgesPerRotation
The number of quadrature edges per sensor rotation for an external quadrature sensor attached to the ...
Definition TalonFXSSimState.hpp:80
ctre::phoenix::StatusCode SetQuadratureAcceleration(wpi::units::turns_per_second_squared_t rpss)
Sets the simulated quadrature acceleration of the TalonFXS.
wpi::units::turn_t PulseWidthSensorOffset
The offset of an absolute external sensor attached to the Talon FXS relative to the robot chassis,...
Definition TalonFXSSimState.hpp:75
ctre::phoenix::StatusCode SetForwardLimit(bool closed)
Sets the simulated forward limit switch of the TalonFXS.
ctre::phoenix::StatusCode SetPulseWidthPosition(wpi::units::turn_t rotations)
Sets the simulated pulse width position of the TalonFXS.
ChassisReference ExtSensorOrientation
The orientation of an external sensor attached to the TalonFXS relative to the robot chassis.
Definition TalonFXSSimState.hpp:65
ctre::phoenix::StatusCode GetLastStatusCode() const
Gets the last status code generated by a simulation function.
TalonFXSSimState & operator=(TalonFXSSimState const &)=delete
wpi::units::ampere_t GetTorqueCurrent() const
Gets the simulated output torque current of the motor.
TalonFXSSimState(TalonFXSSimState const &)=delete
ctre::phoenix::StatusCode AddQuadraturePosition(wpi::units::turn_t dRotations)
Adds to the simulated quadrature position of the TalonFXS.
wpi::units::volt_t GetMotorVoltage() const
Gets the simulated output voltage of the motor.
wpi::units::volt_t GetAnalogVoltage() const
Gets the simulated analog voltage of the TalonFXS.
ctre::phoenix::StatusCode SetSupplyVoltage(wpi::units::volt_t volts)
Sets the simulated supply voltage of the TalonFXS.
TalonFXSSimState(TalonFXSSimState &&)=default
ctre::phoenix::StatusCode SetRotorVelocity(wpi::units::turns_per_second_t rps)
Sets the simulated rotor velocity of the TalonFXS.
TalonFXSSimState(hardware::core::CoreTalonFXS const &device)
Creates an object to control the state of the given hardware::TalonFXS.
Definition TalonFXSSimState.hpp:91
ctre::phoenix::StatusCode SetAnalogVoltage(wpi::units::volt_t volts)
Sets the simulated voltage of the analog input pin on the TalonFXS data port.
ChassisReference MotorOrientation
The orientation of the motor attached to the TalonFXS relative to the robot chassis.
Definition TalonFXSSimState.hpp:54
ctre::phoenix::StatusCode SetPulseWidthVelocity(wpi::units::turns_per_second_t rps)
Sets the simulated pulse width velocity of the TalonFXS.
ctre::phoenix::StatusCode SetReverseLimit(bool closed)
Sets the simulated reverse limit switch of the TalonFXS.
ctre::phoenix::StatusCode SetRawQuadraturePosition(wpi::units::turn_t rotations)
Sets the simulated raw quadrature position of the TalonFXS.
Status codes reported by APIs, including OK, warnings, and errors.
Definition StatusCodes.h:28
Definition ExternalFeedbackConfigs.hpp:17
Definition ExternalFeedbackConfigs.hpp:17
Definition CANdiSimState.hpp:27
ChassisReference
Represents the orientation of a device relative to the robot chassis.
Definition ChassisReference.hpp:16
@ CounterClockwise_Positive
The device should read a counter-clockwise rotation as positive motion.
Definition ChassisReference.hpp:18
Definition ExternalFeedbackConfigs.hpp:16
Definition motor_constants.h:14