The output range can be set on a PIDSubSystem

Also, mimimum -> minimum in PIDController.h

Change-Id: I0cdfdca6ca2bdf2c2a40ee524cc925281069fcf4
This commit is contained in:
Thomas Clark
2014-08-05 14:02:11 -04:00
parent 741e28b855
commit a09f75934a
4 changed files with 32 additions and 13 deletions

View File

@@ -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.