View Single Post
  #21   Spotlight this post!  
Unread 27-05-2011, 12:20
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,077
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: PIDController Rotate

Quote:
Originally Posted by notmattlythgoe View Post
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);
Reply With Quote