View Single Post
  #3   Spotlight this post!  
Unread 05-02-2015, 22:18
thatprogrammer's Avatar
thatprogrammer thatprogrammer is offline
Registered User
AKA: Ahad Bawany
no team (None)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Florida
Posts: 609
thatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond reputethatprogrammer has a reputation beyond repute
Re: Need help with testing PID for an elevator

Quote:
Originally Posted by lopsided98 View Post
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!
Reply With Quote