|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Any Code needed for an Encoder Sensor
I'm looking to get a AS5304 working for our bot but I'm not sure if any code is needed and overall how to get a signal from it. Anything important I should know?
|
|
#2
|
|||||
|
|||||
|
Re: Any Code needed for an Encoder Sensor
Code will definitely be required. The form is very much dependent on which language you're programming your robot in. For Java or C++, you would extend the Encoder class or the CounterBase class, depending on whether you're interested in measuring speed/RPMs or distance/angle of rotation.
|
|
#3
|
||||
|
||||
|
Re: Any Code needed for an Encoder Sensor
I'm looking for distance and to just overall get some sort of reading from it.
I'm using C++. Is there any example code I could use and customize to do what I want it to. |
|
#4
|
||||
|
||||
|
Re: Any Code needed for an Encoder Sensor
Quote:
http://wpilib.screenstepslive.com/s/...or-other-shaft Last edited by Ether : 02-02-2015 at 16:38. |
|
#5
|
||||
|
||||
|
Re: Any Code needed for an Encoder Sensor
Thanks this is very helpful
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|