Class TorquePID
java.lang.Object
edu.wpi.first.math.controller.PIDController
org.texastorque.torquelib.control.TorquePID
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,AutoCloseable
public final class TorquePID
extends edu.wpi.first.math.controller.PIDController
A class representation of a PID controller that extends
the WPILib PIDController.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic final TorquePID.Builder
create()
static final TorquePID.Builder
create
(double p) final edu.wpi.first.math.controller.PIDController
final edu.wpi.first.math.controller.PIDController
createPIDController
(Function<edu.wpi.first.math.controller.PIDController, edu.wpi.first.math.controller.PIDController> function) final double
final double
final double
final double
final double
final double
final double
final boolean
final String
toString()
Methods inherited from class edu.wpi.first.math.controller.PIDController
atSetpoint, calculate, calculate, close, disableContinuousInput, enableContinuousInput, getD, getI, getP, getPeriod, getPositionError, getPositionTolerance, getSetpoint, getVelocityError, getVelocityTolerance, initSendable, isContinuousInputEnabled, reset, setD, setI, setIntegratorRange, setP, setPID, setSetpoint, setTolerance, setTolerance
-
Method Details
-
create
-
create
-
getProportional
public final double getProportional() -
getIntegral
public final double getIntegral() -
getDerivative
public final double getDerivative() -
getFeedForward
public final double getFeedForward() -
getMinOutput
public final double getMinOutput() -
getMaxOutput
public final double getMaxOutput() -
getIntegralZone
public final double getIntegralZone() -
hasIntegralZone
public final boolean hasIntegralZone() -
toString
-
createPIDController
public final edu.wpi.first.math.controller.PIDController createPIDController() -
createPIDController
public final edu.wpi.first.math.controller.PIDController createPIDController(Function<edu.wpi.first.math.controller.PIDController, edu.wpi.first.math.controller.PIDController> function)
-