Class AngleControllerGroup

java.lang.Object
com.stuypulse.stuylib.control.angle.AngleController
com.stuypulse.stuylib.control.angle.AngleControllerGroup

public class AngleControllerGroup extends AngleController
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 Details

  • Method Details

    • calculate

      protected double calculate(Angle setpoint, Angle measurement)
      Updates the internal controllers with the setpoint and measurement and returns their combined output.
      Specified by:
      calculate in class AngleController
      Parameters:
      setpoint - setpoint
      measurement - measurement
      Returns:
      summed output of the interal controllers