SplineController
A controller that uses a Spline for its output. This class extends AbstractController and allows for complex, non-linear control outputs by interpolating values from a provided Spline.
Methods
SplineController(Spline spline)
Constructs a new SplineController with the specified Spline.
spline: TheSplineobject that this controller will use to determine its output values.
modifyInput(double value)
This method can be overridden by subclasses to modify the input value before it is passed to the spline for interpolation. By default, it returns the input value unchanged.
value: The raw input value to the controller.
Returns the modified input value.
calculate(double value)
Calculates the controller's output. It first calls modifyInput() to potentially transform the input value, and then uses the internal spline to interpolate the Y-value at the (modified) input X-value.