mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
The output range can be set on a PIDSubSystem
Also, mimimum -> minimum in PIDController.h Change-Id: I0cdfdca6ca2bdf2c2a40ee524cc925281069fcf4
This commit is contained in:
@@ -184,6 +184,16 @@ public abstract class PIDSubsystem extends Subsystem implements Sendable {
|
||||
controller.setInputRange(minimumInput, maximumInput);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the maximum and minimum values to write.
|
||||
*
|
||||
* @param minimumOutput the minimum value to write to the output
|
||||
* @param maximumOutput the maximum value to write to the output
|
||||
*/
|
||||
public void setOutputRange(double minimumOutput, double maximumOutput) {
|
||||
controller.setOutputRange(minimumOutput, maximumOutput);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the absolute error which is considered tolerable for use with
|
||||
* OnTarget. The value is in the same range as the PIDInput values.
|
||||
|
||||
Reference in New Issue
Block a user