Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   FIRST Tech Challenge (http://www.chiefdelphi.com/forums/forumdisplay.php?f=146)
-   -   Code for Optical Encoders (http://www.chiefdelphi.com/forums/showthread.php?t=49636)

Ctrl Alt Delete 25-10-2006 15:09

Code for Optical Encoders
 
I've looked, but I haven't found any code for the optical shaft encoders. Anyone know of any resources for it? (Using MPLAB)

MattD 25-10-2006 19:30

Re: Code for Optical Encoders
 
Quote:

Originally Posted by Ctrl Alt Delete
I've looked, but I haven't found any code for the optical shaft encoders. Anyone know of any resources for it? (Using MPLAB)

VexLabs has sensor test code as well as other Vex programming resources on the downloads page. The sensor test has sample code for the encoders in the user_routines_sensor_test_fast.c file.

BradAMiller 26-10-2006 03:54

Re: Code for Optical Encoders
 
Quote:

Originally Posted by Ctrl Alt Delete
I've looked, but I haven't found any code for the optical shaft encoders. Anyone know of any resources for it? (Using MPLAB)

WPILib also has built-in support for optical encoders (either quadrature or single-line). You just call a function to start it and another to get the value whenever you want it. You can get WPILib here.. WPILIb can be used with MPLab or eclipse and has a complete set of functions to support all the FIRST supplied sensors (including the CMU Camera) as well as a number of others.

Brad


All times are GMT -5. The time now is 17:49.

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