|
Re: PID Example HELP
I believe the problem is your source and output. You are sending edu.wpi.first.wpilibj.AnalogChannel, edu.wpi.first.wpilibj.Jaguar, while PIDController expects classes implementing the edu.wpi.first.wpilibj.PIDSource and edu.wpi.first.wpilibj.PIDOutput interfaces. The idea is that you create your own classes implementing these interfaces, and pass them to the constructor.
My bad, I must have checked the wrong class in the javadoc somehow.
__________________
while(!going.isTough());
tough.exit();
What will we do tonight, Warfa?
The same thing we do every night, Patrick. Sit and wait for Electrical.
Last edited by Patrickwhite : 21-02-2011 at 07:04.
Reason: Was wrong
|