Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using more than 4 encoders (http://www.chiefdelphi.com/forums/showthread.php?t=75671)

stuartd 09-03-2009 23:47

Using more than 4 encoders
 
1 Attachment(s)
Our team is having trouble using more than 4 quadrature encoders at one time. If we only use 4 or less, everything functions perfectly. When the 5th encoder is added in to the mix strange things begin to happen. The first allocated encoder stops working and the 5th encoder movement appears for both the 5th and 1st encoder.

At first we thought this was a function of our competition code (we use another level of abstraction with the encoders). We then reproduced problem in a SimpleRobot project (see attached). Are we just making a really stupid mistake or can someone verify this issue?

Joe Ross 09-03-2009 23:50

Re: Using more than 4 encoders
 
See http://forums.usfirst.org/showthread.php?t=10821

Alan Anderson 09-03-2009 23:57

Re: Using more than 4 encoders
 
In brief, there are only four "4x" encoders in the hardware. Selecting "1x" or "2x" encoders uses hardware counters instead.

stuartd 10-03-2009 00:47

Re: Using more than 4 encoders
 
Well that makes perfect sense... should have looked deeper in to the hardware behind reading the encoders. I'll drop one of the encoders down to 2x and see if that helps tomorrow. Thanks!


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

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