View Single Post
  #17   Spotlight this post!  
Unread 07-02-2011, 05:24
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Encoder as PIDSource

Quote:
Originally Posted by sircedric4 View Post
So I added this in my constructor:

elevatorEncoder->SetPIDSourceParameter(Encoder::kDistance);

Is that correct? We want to test our robot today and see how it performs and I can't afford to introduce code problems outside of my experience level and lose a day of tweaking on our new hardware. (Today is hopefully first test day of our finalish robot)

I am not going to update the robot's image until I know this will work. We have a working set of code with the previous posts and I'll be using an un-updated computer to tweak our code while testing our robot today.

I am somewhat worried because when I was calling Encoder->, the SetPIDSourceParameter did not show up under the little menu of methods I could select. Also none of the colors changed when I entered the above line. Do I have to do a fresh build or something for the built in Windriver "IntelliSense" to catch up?
Looks OK to me. I'm not sure exactly what it takes to update the intellisense. Perhaps you have to refresh the project or reopen workbench or something.

-Joe
Reply With Quote