View Single Post
  #15   Spotlight this post!  
Unread 15-02-2012, 16:20
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: PID Velocity Control

Quote:
Originally Posted by j.cole View Post
The intended operation is to get the RPM of the motor. Now what I expected to happen was that every half a second the program would take the current value and write it to the previous value. And then take the previous value and subtract it from the current value. Giving me my total rotations for that half second.
For future reference, most of the things on the robot operate somewhere in the 5 to 20 millisecond region. The next time you need to pick an amount of time to wait between calculations, start in this range. Much faster, and the motor controllers can't update as quickly as you are asking them to. Much slower, and things begin to lag or jerk.


Quote:
Originally Posted by j.cole View Post
I've never used shift registers because I have no understanding of them at all and it was easier to do it a different way than learn something, which I should have done in the first place. 5 weeks in is a little bit late eh?
We've all been there: the hardest part of learning a new language is vocabulary.

You might be interested in http://www.frcmastery.com/ - They have some great videos specific to LabVIEW for FRC.
Reply With Quote