11#include <units/angle.h>
12#include <units/angular_velocity.h>
13#include <units/current.h>
14#include <units/voltage.h>
160 ctre::phoenix::StatusCode
SetRotorVelocity(units::angular_velocity::turns_per_second_t rps);
Class description for the Talon FX integrated motor controller that runs on associated Falcon motors.
Definition: CoreTalonFX.hpp:1401
Class to control the state of a simulated hardware::TalonFX.
Definition: TalonFXSimState.hpp:32
ctre::phoenix::StatusCode SetForwardLimit(bool closed)
Sets the simulated forward limit switch of the TalonFX.
units::current::ampere_t GetSupplyCurrent() const
Gets the simulated supply current of the TalonFX.
TalonFXSimState & operator=(TalonFXSimState &&)=default
TalonFXSimState(TalonFXSimState const &)=delete
TalonFXSimState & operator=(TalonFXSimState const &)=delete
ctre::phoenix::StatusCode AddRotorPosition(units::angle::turn_t dRotations)
Adds to the simulated rotor position of the TalonFX.
units::voltage::volt_t GetMotorVoltage() const
Gets the simulated output voltage of the motor.
units::current::ampere_t GetTorqueCurrent() const
Gets the simulated output torque current of the motor.
ctre::phoenix::StatusCode GetLastStatusCode() const
Gets the last status code generated by a simulation function.
ctre::phoenix::StatusCode SetReverseLimit(bool closed)
Sets the simulated reverse limit switch of the TalonFX.
TalonFXSimState(hardware::core::CoreTalonFX const &device, ChassisReference orientation)
Creates an object to control the state of the given hardware::TalonFX.
ctre::phoenix::StatusCode SetRawRotorPosition(units::angle::turn_t rotations)
Sets the simulated raw rotor position of the TalonFX.
TalonFXSimState(hardware::core::CoreTalonFX const &device)
Creates an object to control the state of the given hardware::TalonFX.
Definition: TalonFXSimState.hpp:55
ChassisReference Orientation
The orientation of the TalonFX relative to the robot chassis.
Definition: TalonFXSimState.hpp:44
TalonFXSimState(TalonFXSimState &&)=default
ctre::phoenix::StatusCode SetRotorVelocity(units::angular_velocity::turns_per_second_t rps)
Sets the simulated rotor velocity of the TalonFX.
ctre::phoenix::StatusCode SetSupplyVoltage(units::voltage::volt_t volts)
Sets the simulated supply voltage of the TalonFX.
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: string_util.hpp:14