Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Any Code needed for an Encoder Sensor (http://www.chiefdelphi.com/forums/showthread.php?t=133875)

Pike3543 02-02-2015 15:31

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?

GeeTwo 02-02-2015 15:51

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.

Pike3543 02-02-2015 16:04

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.

Ether 02-02-2015 16:34

Re: Any Code needed for an Encoder Sensor
 
Quote:

Originally Posted by Pike3543 (Post 1437388)
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.

The code you want is in WPILib.

http://wpilib.screenstepslive.com/s/...or-other-shaft



Pike3543 02-02-2015 21:50

Re: Any Code needed for an Encoder Sensor
 
Thanks this is very helpful


All times are GMT -5. The time now is 01:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi