|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Encoder Help.
I have an encoder hooked up along with a motor. The encoder reads the motor fine. But, I'm stuck on how to use the the output of the encoder with the motor. So lets say i press button 10 on the joystick. Than it tells the motor to only spin 1/4 a rotation, or 90 degrees. I've been trying every possible idea that i had. Any help is greatly appreciated.
//EDIT\\ I've noticed that In my Driver Station the VOLTS are not updating it stuck at 17.5 VOLTS or something like that. any ideas? Last edited by mtnteam : 13-02-2012 at 16:05. Reason: Adding a new problem. |
|
#2
|
||||
|
||||
|
Re: Encoder Help.
Quote:
Every time the leading edge of a button press is detected, increment the setpoint by 90 degrees. What are you using this for? |
|
#3
|
|||
|
|||
|
Re: Encoder Help.
I'm using it for, to feed a ball to a shooter. Is there a example picture you could show me?
|
|
#4
|
||||
|
||||
|
Re: Encoder Help.
Picture of what? PID? It's a vi in your FRC LabVIEW installation.
How to detect leading edge of a button press? http://www.chiefdelphi.com/forums/sh...30&postcount=3 |
|
#5
|
|||
|
|||
|
Re: Encoder Help.
an example on how the pid's are used with the motor.
|
|
#6
|
||||
|
||||
|
Re: Encoder Help.
Did you search the LabVIEW help and examples, and could not find what you need?
|
|
#7
|
|||
|
|||
|
Re: Encoder Help.
Correct. There is a Encoder with a motor example. But all its doing is reading the motor. I want to figure out how to use that information to set it so many turns or degrees.
|
|
#8
|
||||
|
||||
|
Re: Encoder Help.
Quote:
Is there an example that shows how to control motor position using a PID? |
|
#9
|
|||
|
|||
|
Re: Encoder Help.
I'm not seeing one at all. So i was wondering if you have an example you could show me.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|