
15-02-2015, 16:42
|
|
Registered User
 FRC #5005
|
|
Join Date: Jan 2015
Location: Chattanooga, TN
Posts: 72
|
|
|
Re: Use a button to make a motor move a certain number of rotations
Quote:
Originally Posted by Levansic
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?
|