Go to Post Of course, the banana might mean nothing. It could just mean that Dave needs more potassium in his diet. :) - KathieK [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 29-10-2015, 15:15
entertainr entertainr is offline
Build Addicted
AKA: Levi
FRC #4522 (Team SCREAM)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Sedalia
Posts: 7
entertainr is an unknown quantity at this point
MA3 Value Troubles

I have been trying to read a MA3 analog encoder through a Talon SRX. I was under the impression that the values it outputs should go from 0-360, then reset to 0 upon a full rotation. Whenever I test it though, I'm getting readings from -infinity to infinity like a normal encoder.

I've attached screen shots from begin and periodic tasks, I can add a self-test of the Talon SRX if needed.
Attached Thumbnails
Click image for larger version

Name:	Begin.PNG
Views:	20
Size:	3.6 KB
ID:	19377  Click image for larger version

Name:	Periodic Tasks.PNG
Views:	15
Size:	2.7 KB
ID:	19378  
Reply With Quote
  #2   Spotlight this post!  
Unread 29-10-2015, 19:02
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 521
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: MA3 Value Troubles

"Analog Encoder" counts the overflows in both directions, so you can servo multiple rotations. This is explained in section 16.11 in the Talon SRX Software Reference Manual. Also in section 17.3

If you want your position to be [0 to 1023] and not track overflows, you can select "analog potentiometer" (section 17.2), however unless you can guarantee your mechanism can't turn more than one rotation, this is likely not what you want. For example if you have a PIDF control loop and you are serving to a position, and the mechanism overshoots your MA3 encoder, you would want your control loop to servo back gracefully, instead of seeing a major discontinuity of 1023 => 0.

The 2015 implementation uses Talon SRX raw units for sensor, see section 17 for the details. It's not in degrees.

Documents...
http://www.ctr-electronics.com/talon...ical_resources
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 03:57.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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