12#include <wpi/units/angle.hpp>
13#include <wpi/units/angular_velocity.hpp>
14#include <wpi/units/voltage.hpp>
Class for CANcoder, a CAN based magnetic encoder that provides absolute and relative position along w...
Definition CoreCANcoder.hpp:601
ChassisReference Orientation
The orientation of the CANcoder relative to the robot chassis.
Definition CANcoderSimState.hpp:44
ctre::phoenix::StatusCode SetVelocity(wpi::units::turns_per_second_t rps)
Sets the simulated velocity of the CANcoder.
CANcoderSimState & operator=(CANcoderSimState &&)=default
CANcoderSimState(CANcoderSimState const &)=delete
ctre::phoenix::StatusCode AddPosition(wpi::units::turn_t dRotations)
Adds to the simulated position of the CANcoder.
CANcoderSimState(hardware::core::CoreCANcoder const &device, ChassisReference orientation)
Creates an object to control the state of the given hardware::CANcoder.
ctre::phoenix::StatusCode SetRawPosition(wpi::units::turn_t rotations)
Sets the simulated raw position of the CANcoder.
CANcoderSimState(hardware::core::CoreCANcoder const &device)
Creates an object to control the state of the given hardware::CANcoder.
Definition CANcoderSimState.hpp:64
wpi::units::turn_t SensorOffset
The offset of the CANcoder position relative to the robot chassis, in rotations.
Definition CANcoderSimState.hpp:53
ctre::phoenix::StatusCode SetSupplyVoltage(wpi::units::volt_t volts)
Sets the simulated supply voltage of the CANcoder.
ctre::phoenix::StatusCode SetMagnetHealth(ctre::phoenix6::signals::MagnetHealthValue value)
Sets the simulated magnet health of the CANcoder.
CANcoderSimState(CANcoderSimState &&)=default
CANcoderSimState & operator=(CANcoderSimState const &)=delete
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
Magnet health as measured by CANcoder.
Definition SpnEnums.hpp:2192