diff --git a/wpilibc/src/main/native/include/frc/controller/RamseteController.h b/wpilibc/src/main/native/include/frc/controller/RamseteController.h index 3a564aacdd..6ec6edc292 100644 --- a/wpilibc/src/main/native/include/frc/controller/RamseteController.h +++ b/wpilibc/src/main/native/include/frc/controller/RamseteController.h @@ -54,6 +54,13 @@ class RamseteController { */ RamseteController(double b, double zeta); + /** + * Construct a Ramsete unicycle controller. The default arguments for + * b and zeta of 2.0 and 0.7 have been well-tested to produce desireable + * results. + */ + RamseteController() : RamseteController(2.0, 0.7) {} + /** * Returns true if the pose error is within tolerance of the reference. */ diff --git a/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java b/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java index 77b7688e2a..3ff9ac5b95 100644 --- a/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java +++ b/wpilibj/src/main/java/edu/wpi/first/wpilibj/controller/RamseteController.java @@ -63,6 +63,15 @@ public class RamseteController { m_zeta = zeta; } + /** + * Construct a Ramsete unicycle controller. The default arguments for + * b and zeta of 2.0 and 0.7 have been well-tested to produce desireable + * results. + */ + public RamseteController() { + this(2.0, 0.7); + } + /** * Returns true if the pose error is within tolerance of the reference. */