90 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:25
@ kFrontRight
Front-right motor.
Definition RobotDriveBase.hpp:29
@ kFrontLeft
Front-left motor.
Definition RobotDriveBase.hpp:27
@ kRearRight
Rear-right motor.
Definition RobotDriveBase.hpp:33
@ kBack
Back motor.
Definition RobotDriveBase.hpp:39
@ kRight
Right motor.
Definition RobotDriveBase.hpp:37
@ kLeft
Left motor.
Definition RobotDriveBase.hpp:35
@ kRearLeft
Rear-left motor.
Definition RobotDriveBase.hpp:31
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:93
void StopMotor() override=0
Called to stop the motor when the timeout expires.
double m_maxOutput
Maximum output.
Definition RobotDriveBase.hpp:96
RobotDriveBase(RobotDriveBase &&)=default
void SetDeadband(double deadband)
Sets the deadband applied to the drive inputs (e.g., joystick values).
static constexpr double kDefaultDeadband
Default input deadband.
Definition RobotDriveBase.hpp:81
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...
static constexpr double kDefaultMaxOutput
Default maximum output.
Definition RobotDriveBase.hpp:84
Definition CvSource.hpp:15