InvertController

public class InvertController implements Controller

Controller which inverts and scales the input using 1/x function. (high input -> low output, low input -> high output)

Author:Marcel Stefko

Fields

maximum

protected double maximum

Maximal possible output value.

Constructors

InvertController

public InvertController(double maximum, double value_at_1_mw)

Initializes the InvertController

Parameters:
  • maximum – max output value
  • value_at_1_mw – what is the value of input that you want to cause an output value of 1.0 (scaling constant)

Methods

getCurrentOutput

public double getCurrentOutput()

getName

public String getName()

getSetpoint

public double getSetpoint()

getStatusPanel

public ControllerStatusPanel getStatusPanel()

nextValue

public double nextValue(double value)

setSetpoint

public void setSetpoint(double value)

Sets the scaling constant, since it basically fulfills the role of setpoint for this controller.

Parameters:
  • value – new scaling constant