View Single Post
  #10   Spotlight this post!  
Unread 21-02-2011, 00:01
Geek 2.0 Geek 2.0 is offline
Registered User
FRC #0107
Team Role: Programmer
 
Join Date: Sep 2009
Rookie Year: 2008
Location: Holland, MI
Posts: 120
Geek 2.0 will become famous soon enough
Re: PID Example HELP

Quote:
Originally Posted by Patrickwhite View Post
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.
AnalogChannel implements PIDSource and Jaguar implements PIDOutput, so that's probably not their problem.
Reply With Quote