89 static void Desaturate(std::span<double> wheelVelocities);
RobotDriveBase & operator=(RobotDriveBase &&)=default
MotorType
The location of a motor on the robot for the purpose of driving.
Definition RobotDriveBase.hpp:24
@ BACK
Back motor.
Definition RobotDriveBase.hpp:38
@ RIGHT
Right motor.
Definition RobotDriveBase.hpp:36
@ FRONT_LEFT
Front-left motor.
Definition RobotDriveBase.hpp:26
@ FRONT_RIGHT
Front-right motor.
Definition RobotDriveBase.hpp:28
@ REAR_LEFT
Rear-left motor.
Definition RobotDriveBase.hpp:30
@ REAR_RIGHT
Rear-right motor.
Definition RobotDriveBase.hpp:32
@ LEFT
Left motor.
Definition RobotDriveBase.hpp:34
static constexpr double DEFAULT_MAX_OUTPUT
Default maximum output.
Definition RobotDriveBase.hpp:83
static void Desaturate(std::span< double > wheelVelocities)
Renormalize all wheel velocities if the magnitude of any wheel is greater than 1.0.
double m_deadband
Input deadband.
Definition RobotDriveBase.hpp:92
void StopMotor() override=0
Called to stop the motor when the timeout expires.
double m_maxOutput
Maximum output.
Definition RobotDriveBase.hpp:95
RobotDriveBase(RobotDriveBase &&)=default
void SetDeadband(double deadband)
Sets the deadband applied to the drive inputs (e.g., joystick values).
static constexpr double DEFAULT_DEADBAND
Default input deadband.
Definition RobotDriveBase.hpp:80
std::string GetDescription() const override=0
Returns a description to print when an error occurs.
void FeedWatchdog()
Feed the motor safety object.
~RobotDriveBase() override=default
void SetMaxOutput(double maxOutput)
Configure the scaling factor for using RobotDrive with motor controllers in a mode other than Percent...
Definition CvSource.hpp:15