Go to Post The best metrics are your own. Do you see the impact of your efforts in your community? Do you feel like you should/could have won Chairman's, but another team was even more deserving? That's how you know FIRST is really working. - dcarr [more]
Home
Go Back   Chief Delphi > Technical > Programming
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 04-04-2016, 23:01
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Talon SRX magnetic encoder issues

Quote:
Originally Posted by Ether View Post

More detailed info would be helpful.

What exactly are you measuring with this encoder? It sounds like it might be steering angle of a swerve wheel? But that's just a guess.

What is the max angular speed the encoder will see in this application?

In normal operation, does the encoder cross the 360/0 discontinuity?

And just to be perfectly clear, the encoder is wired directly to the SRX, right?



1. It's a rotating cage that holds the ball. Video for reference
2. Rotates fairly slowly, it should take several seconds to go one rotation.
3. No, I've made sure that it doesn't cross
4. Yes
__________________
Head Programmer / Driver
Reply With Quote
  #2   Spotlight this post!  
Unread 04-04-2016, 23:15
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Talon SRX magnetic encoder issues

Quote:
Originally Posted by cjl2625 View Post
1. It's a rotating cage that holds the ball.
2. Rotates fairly slowly, it should take several seconds to go one rotation.
So to be clear, the encoder is mounted to the cage?


Reply With Quote
  #3   Spotlight this post!  
Unread 05-04-2016, 07:11
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Talon SRX magnetic encoder issues

Quote:
Originally Posted by Ether View Post
So to be clear, the encoder is mounted to the cage?


The encoder is integrated right into the versaplanetary gearbox that rotates the cage.

RyanShoff: that could be a good idea, I'll try that if I can't figure out how to fix it directly.
__________________
Head Programmer / Driver
Reply With Quote
  #4   Spotlight this post!  
Unread 05-04-2016, 10:04
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Talon SRX magnetic encoder issues

Quote:
Originally Posted by cjl2625 View Post
The encoder is integrated right into the versaplanetary gearbox that rotates the cage.
Does the encoder rotate at the same speed as the cage?

If not, what is the max angular speed the encoder will see in this application?


Reply With Quote
  #5   Spotlight this post!  
Unread 05-04-2016, 10:18
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Talon SRX magnetic encoder issues

Yes, it should be rotating at the same speed.
__________________
Head Programmer / Driver
Reply With Quote
  #6   Spotlight this post!  
Unread 05-04-2016, 14:18
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: 516
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: Talon SRX magnetic encoder issues

It sounds like you have a cabling issue between the magencoder and Talon.

You can confirm this by grabbing the self-test before and after reproducing the problem and observing that the absolute position (pulse width) and relative position (quadrature) disagree. That's one of the benefits of the CTRE magnetic encoder; you have two references that rely on different physical wires.

Most likely the ribbon cable needs to be replaced, or if you are using a breakout inspect the solder contacts/wiring.

Are you close or exceeding the peak rated RPM for CTREMagEnc_Absolute? If so then select CTREMagEnc_Relative and setposition() to what the absolute reading reports. See github examples/Talon SRX Software Reference manual for more info and peak RPM specs.
Reply With Quote
  #7   Spotlight this post!  
Unread 05-04-2016, 14:28
cjl2625's Avatar
cjl2625 cjl2625 is offline
apel py
AKA: Cory Lynch
FRC #2067 (Apple Pi)
Team Role: Programmer
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Guilford, CT
Posts: 412
cjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to beholdcjl2625 is a splendid one to behold
Re: Talon SRX magnetic encoder issues

Quote:
Originally Posted by ozrien View Post
It sounds like you have a cabling issue between the magencoder and Talon.

You can confirm this by grabbing the self-test before and after reproducing the problem and observing that the absolute position (pulse width) and relative position (quadrature) disagree. That's one of the benefits of the CTRE magnetic encoder; you have two references that rely on different physical wires.

Most likely the ribbon cable needs to be replaced, or if you are using a breakout inspect the solder contacts/wiring.

Are you close or exceeding the peak rated RPM for CTREMagEnc_Absolute? If so then select CTREMagEnc_Relative and setposition() to what the absolute reading reports. See github examples/Talon SRX Software Reference manual for more info and peak RPM specs.
The rotation is quite slow, so I don't think exceeding RPM is an issue.

At some point, I switched to relative mode and the problem stopped. So perhaps you are correct.
But we have two components robot using a mag encoder, and I've seen the same issue in both of them, so I figure it would be unlikely for them both to have the same cabling issue.
__________________
Head Programmer / Driver
Reply With Quote
  #8   Spotlight this post!  
Unread 05-04-2016, 16:16
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,995
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Talon SRX magnetic encoder issues

Quote:
Originally Posted by cjl2625 View Post
The rotation is quite slow, so I don't think exceeding RPM is an issue.

At some point, I switched to relative mode and the problem stopped. So perhaps you are correct.
Are you sure the encoder is spinning at the same (slow) rate as the cage itself? Or is there a gear ratio between them?


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 13:45.

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