Quote:
Originally Posted by notmattlythgoe
How would you accomplish this without passing the PIDController's constructor a PIDOutput object? Create an abstract instance of one?
|
Yeah, you would just create a minimalist implementation of a PIDOutput (it could even be an anonymous class).
Something like...
Code:
xxx = new PIDController(Kp, Ki, Kd, source, new PIDOutput() {void pidWrite(double output){ } }, period);