Class PropCtrl

  • All Implemented Interfaces:
    Action

    public class PropCtrl
    extends Object
    implements Action
    Implementation of a proportional controller.
    Author:
    Herbert Praehofer
    • Field Detail

      • Kp

        private final double Kp
        Proportional constant
      • setpoint

        private final DVar setpoint
        Variable for the setpoint
      • measured

        private final DVar measured
        Variable for the measured value
      • output

        private final DVar output
        Variable for the controller output
    • Constructor Detail

      • PropCtrl

        public PropCtrl​(double Kp,
                        DVar setpoint,
                        DVar measured,
                        DVar output)
        Constructor.
        Parameters:
        Kp - the proportional constant
        setpoint - the variable for the setpoint
        measured - the variable for the measurements
        output - the variable for the controller output
    • Method Detail

      • exec

        public void exec()
        Executes this proportional controller action.
        Specified by:
        exec in interface Action