mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[commands] Add constructor for SwerveControllerCommand that takes a HolonomicDriveController (#4785)
Also adds copy and move constructors to HolonomicDriveController.
This commit is contained in:
@@ -45,6 +45,12 @@ class WPILIB_DLLEXPORT HolonomicDriveController {
|
||||
frc2::PIDController xController, frc2::PIDController yController,
|
||||
ProfiledPIDController<units::radian> thetaController);
|
||||
|
||||
HolonomicDriveController(const HolonomicDriveController&) = default;
|
||||
HolonomicDriveController& operator=(const HolonomicDriveController&) =
|
||||
default;
|
||||
HolonomicDriveController(HolonomicDriveController&&) = default;
|
||||
HolonomicDriveController& operator=(HolonomicDriveController&&) = default;
|
||||
|
||||
/**
|
||||
* Returns true if the pose error is within tolerance of the reference.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user