Quote:
Originally Posted by j.cole
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
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.