![]() |
Problems with Encoder
Our team is trying to use an encoder to measure the amount of times our motor turns so we can adjust our kicker during the match. I have no clue first off how to get the encoder to count in labview and second i am trying to set a limit switch in the encoder so that i can then set it to only wind till a certain position. IE Position 1 to Position 3 or 1 to 2 or 2 to 1. Any help?
|
Re: Problems with Encoder
You need to create an Encoder object from the WPILib stuff. Then you start it, and use Get to get the value. Reset will reset it.
You could for instance then do something like run a motor until encoder get returns 10, or 100 or whatever. |
Re: Problems with Encoder
Thanks, but I'm curious how you wire the "get" to find the information and I am completely and unequivocally confused of how to set a limit in the encoder as a switch that we can use to judge where the kicker is at. Any Help?
|
| All times are GMT -5. The time now is 11:47. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi