11#include <units/angle.h>
12#include <units/angular_velocity.h>
13#include <units/voltage.h>
107 ctre::phoenix::StatusCode
AddPosition(units::angle::turn_t dRotations);
115 ctre::phoenix::StatusCode
SetVelocity(units::angular_velocity::turns_per_second_t rps);
Class for CANcoder, a CAN based magnetic encoder that provides absolute and relative position along w...
Definition: CoreCANcoder.hpp:331
Class to control the state of a simulated hardware::CANcoder.
Definition: CANcoderSimState.hpp:31
CANcoderSimState(CANcoderSimState const &)=delete
CANcoderSimState & operator=(CANcoderSimState const &)=delete
CANcoderSimState(hardware::core::CoreCANcoder const &device)
Creates an object to control the state of the given hardware::CANcoder.
Definition: CANcoderSimState.hpp:54
ChassisReference Orientation
The orientation of the CANcoder relative to the robot chassis.
Definition: CANcoderSimState.hpp:43
ctre::phoenix::StatusCode SetSupplyVoltage(units::voltage::volt_t volts)
Sets the simulated supply voltage of the CANcoder.
CANcoderSimState(CANcoderSimState &&)=default
CANcoderSimState(hardware::core::CoreCANcoder const &device, ChassisReference orientation)
Creates an object to control the state of the given hardware::CANcoder.
CANcoderSimState & operator=(CANcoderSimState &&)=default
ctre::phoenix::StatusCode AddPosition(units::angle::turn_t dRotations)
Adds to the simulated position of the CANcoder.
ctre::phoenix::StatusCode SetVelocity(units::angular_velocity::turns_per_second_t rps)
Sets the simulated velocity of the CANcoder.
ctre::phoenix::StatusCode SetRawPosition(units::angle::turn_t rotations)
Sets the simulated raw position of the CANcoder.
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