Class AngleControllerGroup
java.lang.Object
com.stuypulse.stuylib.control.angle.AngleController
com.stuypulse.stuylib.control.angle.AngleControllerGroup
Angle controllers can be grouped together in a "controller group" if they have the same setpoint
and measurement.
This allows different controller implementations that are controlling the same variable to be concisely composed together.
-
Constructor Summary
ConstructorDescriptionAngleControllerGroup
(AngleController controller, AngleController... controllers) Create a controller group -
Method Summary
Methods inherited from class com.stuypulse.stuylib.control.angle.AngleController
add, getError, getMeasurement, getOutput, getSetpoint, isDoneDegrees, isDoneRadians, setMeasurementFilter, setOutputFilter, setSetpointFilter, update
-
Constructor Details
-
AngleControllerGroup
Create a controller group
-
-
Method Details
-
calculate
Updates the internal controllers with the setpoint and measurement and returns their combined output.- Specified by:
calculate
in classAngleController
- Parameters:
setpoint
- setpointmeasurement
- measurement- Returns:
- summed output of the interal controllers
-