10 #include <llvm/raw_ostream.h> 12 #include "Drive/RobotDriveBase.h" 101 static constexpr
double kDefaultQuickStopThreshold = 0.2;
102 static constexpr
double kDefaultQuickStopAlpha = 0.1;
110 void ArcadeDrive(
double xSpeed,
double zRotation,
bool squaredInputs =
true);
111 void CurvatureDrive(
double xSpeed,
double zRotation,
bool isQuickTurn);
112 void TankDrive(
double leftSpeed,
double rightSpeed,
113 bool squaredInputs =
true);
118 void StopMotor()
override;
127 double m_quickStopThreshold = kDefaultQuickStopThreshold;
128 double m_quickStopAlpha = kDefaultQuickStopAlpha;
129 double m_quickStopAccumulator = 0.0;
Interface for speed controlling devices.
Definition: SpeedController.h:17
Definition: RobotController.cpp:14
void TankDrive(double leftSpeed, double rightSpeed, bool squaredInputs=true)
Tank drive method for differential drive platform.
Definition: DifferentialDrive.cpp:189
A class for driving differential drive/skid-steer drive platforms such as the Kit of Parts drive base...
Definition: DifferentialDrive.h:99
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: DifferentialDrive.cpp:260
void SetQuickStopAlpha(double alpha)
Sets the low-pass filter gain for QuickStop in curvature drive.
Definition: DifferentialDrive.cpp:246
void CurvatureDrive(double xSpeed, double zRotation, bool isQuickTurn)
Curvature drive method for differential drive platform.
Definition: DifferentialDrive.cpp:116
void SetQuickStopThreshold(double threshold)
Sets the QuickStop speed threshold in curvature drive.
Definition: DifferentialDrive.cpp:232
Definition: SendableBuilder.h:23
DifferentialDrive(SpeedController &leftMotor, SpeedController &rightMotor)
Construct a DifferentialDrive.
Definition: DifferentialDrive.cpp:25
void ArcadeDrive(double xSpeed, double zRotation, bool squaredInputs=true)
Arcade drive method for differential drive platform.
Definition: DifferentialDrive.cpp:47
This class implements an extremely fast bulk output stream that can only output to a stream...
Definition: raw_ostream.h:33
Common base class for drive platforms.
Definition: RobotDriveBase.h:26