|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
"Ticks" per revolutin Absolute Encoder
Does anyone know the 'ticks'/counts per revolution of
http://www.andymark.com/product-p/am-2899.htm This is the number that CanTalon.getAnalogInPosition() reads Last edited by TimTheGreat : 31-01-2016 at 22:30. |
|
#2
|
||||||
|
||||||
|
Re: "Ticks" per revolutin Absolute Encoder
See section 16.11 or 17.2 of the Talon SRX Software Reference Manual.
|
|
#3
|
|||||
|
|||||
|
Re: "Ticks" per revolutin Absolute Encoder
Tim,
Going to the downloads tab on the AM page you linked, then looking at the datasheet, I found that it supports several options:
It looks like it's somehow program selectable among these modes. |
|
#4
|
||||
|
||||
|
Re: "Ticks" per revolutin Absolute Encoder
So I was looking at these, but they don't seem to match what the robot was doing.
I printed out motor.getAnalogInPosition() and I got discrete numbers that kept increasing like a standard encoder. |
|
#5
|
||||
|
||||
|
Re: "Ticks" per revolutin Absolute Encoder
I'm thinking a software bug in your code is involved.
None of the three versions of that encoder produce "ticks" because of rotating. Double-check that you are invoking a suitable analog read function, and thatsome other part of your code isn't summing the values you read. The encoder output definitely is not the sort of signal that typically would get connected to an interrupt or other hw input port so that pulses could be counted. Instead its amplitude or duration should be measured (either Volts or Seconds), depending on which version of the encoder you are using. Last edited by gblake : 01-02-2016 at 07:39. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|