BangBangController
Potentially the most incredibly simple type of controller.
The calculate method functions like so:
- If it's given 0 as an input, it will return 0 as an output.
- If it's given a number greater than 0, it will return
outputWhenPositive. - If it's given a number less than 0, it will return
outputWhenNegative.
The controller's "input" is specified by getTarget() - value.
Methods
BangBangController(double outputWhenPositive, double outputWhenNegative)
Creates a new BangBangController.
calculate(double value)
Calculates the output of the controller.