
05-02-2015, 22:18
|
 |
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
|
|
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 609
|
|
|
Re: Need help with testing PID for an elevator
Quote:
Originally Posted by lopsided98
Try changing the second to last line to:
Code:
ElevatorPID = new PIDController(0.5, 0.0, 0.0, ElevatorEnc, Elevator);
Your problem is that you are passing the address of a pointer to the PIDController instead of just a pointer (because ElevatorInc and Elevator are already pointers).
|
That did it, thanks!
|