Package org.hyperonline.hyperlib.pid
Class PassivePIDController
- java.lang.Object
-
- edu.wpi.first.wpilibj.SendableBase
-
- edu.wpi.first.wpilibj.PIDBase
-
- edu.wpi.first.wpilibj.PIDController
-
- org.hyperonline.hyperlib.pid.PrefPIDController
-
- org.hyperonline.hyperlib.pid.PassivePIDController
-
- All Implemented Interfaces:
edu.wpi.first.wpilibj.Controller
,edu.wpi.first.wpilibj.PIDInterface
,edu.wpi.first.wpilibj.PIDOutput
,edu.wpi.first.wpilibj.Sendable
,java.lang.AutoCloseable
public class PassivePIDController extends PrefPIDController
This class is aPrefPIDController
with no output. This is useful if calculating the PID output is only part of calculating the outputs to actuators. UsePIDBase.get()
to check the last output value.
-
-
Constructor Summary
Constructors Constructor Description PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, double Kf, edu.wpi.first.wpilibj.PIDSource source)
PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, double Kf, edu.wpi.first.wpilibj.PIDSource source, double period)
PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, edu.wpi.first.wpilibj.PIDSource source)
PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, edu.wpi.first.wpilibj.PIDSource source, double period)
-
Method Summary
-
Methods inherited from class org.hyperonline.hyperlib.pid.PrefPIDController
getTolerance, isAbove, isBelow, setAbsoluteTolerance, setOutputRange, setPercentTolerance, setPID, setPID
-
Methods inherited from class edu.wpi.first.wpilibj.PIDController
close, disable, enable, initSendable, isEnabled, reset, setEnabled
-
Methods inherited from class edu.wpi.first.wpilibj.PIDBase
calculate, calculateFeedForward, get, getAvgError, getContinuousError, getD, getDeltaSetpoint, getError, getF, getI, getP, getSetpoint, onTarget, pidWrite, setContinuous, setContinuous, setD, setF, setI, setInputRange, setP, setSetpoint, setTolerance, setToleranceBuffer
-
Methods inherited from class edu.wpi.first.wpilibj.SendableBase
addChild, free, getName, getSubsystem, setName, setName, setName, setSubsystem
-
-
-
-
Constructor Detail
-
PassivePIDController
public PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, edu.wpi.first.wpilibj.PIDSource source)
- Parameters:
prefString
- A string to identify preferencesKp
- the default value for PKi
- the default value for IKd
- the default value for Dsource
- the source of feedback- See Also:
PrefPIDController(String, double, double, double, PIDSource, edu.wpi.first.wpilibj.PIDOutput)
-
PassivePIDController
public PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, edu.wpi.first.wpilibj.PIDSource source, double period)
- Parameters:
prefString
- A string to identify preferencesKp
- the default value for PKi
- the default value for IKd
- the default value for Dsource
- the source of feedbackperiod
- the period to run the PID controller at- See Also:
PrefPIDController(String, double, double, double, PIDSource, edu.wpi.first.wpilibj.PIDOutput, double)
-
PassivePIDController
public PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, double Kf, edu.wpi.first.wpilibj.PIDSource source)
- Parameters:
prefString
- A string to identify preferencesKp
- the default value for PKi
- the default value for IKd
- the default value for DKf
- the default value for Fsource
- the source of feedback- See Also:
PrefPIDController(String, double, double, double, double, PIDSource, edu.wpi.first.wpilibj.PIDOutput)
-
PassivePIDController
public PassivePIDController(java.lang.String prefString, double Kp, double Ki, double Kd, double Kf, edu.wpi.first.wpilibj.PIDSource source, double period)
- Parameters:
prefString
- A string to identify preferencesKp
- the default value for PKi
- the default value for IKd
- the default value for DKf
- the default value for Fsource
- the source of feedbackperiod
- the period to run the PID controller at- See Also:
PrefPIDController(String, double, double, double, double, PIDSource, edu.wpi.first.wpilibj.PIDOutput, double)
-
-