The Motor Safety feature acts as a watchdog timer for an individual motor.
Definition: MotorSafety.h:25
Common base class for drive platforms.
Definition: RobotDriveBase.h:20
RobotDriveBase & operator=(RobotDriveBase &&)=default
void StopMotor() override=0
Called to stop the motor when the timeout expires.
std::string GetDescription() const override=0
Returns a description to print when an error occurs.
void SetDeadband(double deadband)
Sets the deadband applied to the drive inputs (e.g., joystick values).
double m_deadband
Input deadband.
Definition: RobotDriveBase.h:93
static constexpr double kDefaultDeadband
Default input deadband.
Definition: RobotDriveBase.h:81
~RobotDriveBase() override=default
MotorType
The location of a motor on the robot for the purpose of driving.
Definition: RobotDriveBase.h:25
@ kLeft
Left motor.
Definition: RobotDriveBase.h:35
@ kFrontLeft
Front-left motor.
Definition: RobotDriveBase.h:27
@ kRight
Right motor.
Definition: RobotDriveBase.h:37
@ kFrontRight
Front-right motor.
Definition: RobotDriveBase.h:29
@ kRearRight
Rear-right motor.
Definition: RobotDriveBase.h:33
@ kRearLeft
Rear-left motor.
Definition: RobotDriveBase.h:31
@ kBack
Back motor.
Definition: RobotDriveBase.h:39
void SetMaxOutput(double maxOutput)
Configure the scaling factor for using RobotDrive with motor controllers in a mode other than Percent...
static void Desaturate(std::span< double > wheelSpeeds)
Renormalize all wheel speeds if the magnitude of any wheel is greater than 1.0.
void FeedWatchdog()
Feed the motor safety object.
RobotDriveBase(RobotDriveBase &&)=default
static constexpr double kDefaultMaxOutput
Default maximum output.
Definition: RobotDriveBase.h:84
double m_maxOutput
Maximum output.
Definition: RobotDriveBase.h:96
Definition: AprilTagPoseEstimator.h:15