Deprecated API
Contents
-
Terminally Deprecated ElementsElementDescriptionUse
Command.deadlineFor(org.wpilib.command2.Command...)instead.Use CommandScheduler.getInstance().schedule(Command...) insteadThis constructor's similarity toDeferredCommandis confusing and opens potential footguns for users who do not fully understand the semantics and implications of proxying, but who simply want runtime construction. Users who do know what they are doing and need a supplier-constructed proxied command should instead defer a proxy command.Deprecated without replacement.Use getError() instead.Use getErrorTolerance() instead.Use getErrorDerivative() instead.Use getErrorDerivativeTolerance() instead.Use constructor taking Ellipse2d instead.Use constructor taking Rectangle2d instead.Will be removed with no replacement.UseAprilTagFieldLayout.loadField(AprilTagFields)instead.
-
Deprecated Classes
-
Deprecated MethodsMethodDescriptionUse
Command.deadlineFor(org.wpilib.command2.Command...)instead.Use CommandScheduler.getInstance().schedule(Command...) insteadDeprecated without replacement.Use getRate() in favor of this method.Use setMinRate() in favor of this method. This takes unscaled periods and setMinRate() scales using value from setDistancePerPulse().Use getError() instead.Use getErrorTolerance() instead.Use getErrorDerivative() instead.Use getErrorDerivativeTolerance() instead.Use the instance method instead.UseAprilTagFieldLayout.loadField(AprilTagFields)instead.
-
Deprecated ConstructorsConstructorDescriptionThis constructor's similarity to
DeferredCommandis confusing and opens potential footguns for users who do not fully understand the semantics and implications of proxying, but who simply want runtime construction. Users who do know what they are doing and need a supplier-constructed proxied command should instead defer a proxy command.Use constructor taking Ellipse2d instead.Use constructor taking Rectangle2d instead.