View Single Post
  #12   Spotlight this post!  
Unread 15-02-2015, 16:42
RoboBucs RoboBucs is offline
Registered User
FRC #5005
 
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 72
RoboBucs is an unknown quantity at this point
Re: Use a button to make a motor move a certain number of rotations

Quote:
Originally Posted by Levansic View Post
Your snippets are illuminating.

OK, here's the rest of the story. Unfortunately, you won't have a simple way of just sending a number to the motor controller, as you are using PWM Victors, which have no understanding of encoders or close loop modes.

You will need to implement a PID control in LabView, where the encoder inputs are compared to your desired position. The outputs will drive the motor voltages up and down, until the desired position is realized.

LabView has several built-in PID functions, and there are many threads here about how to use them.
How do they have no way of understanding encoders if the encoders are built in?
Reply With Quote