Go to Post MR. KAMEN! TEAR DOWN THIS WALL! - Briansmithtown [more]
Home
Go Back   Chief Delphi > Technical > Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 28-01-2015, 19:31
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Troubles with Talon SRX in Follower mode

I have 4 Talon SRXs controlling 4 CIMs on the KoP chassis drive train. CAN ID 1 is front left, 2 is back left, 3 is front right and 4 is back right. I set both 2 and 4 to follow 1 and 3, respectively. In this configuration, it looks like 2 and 4 have stopped driving. The red and green lights no longer light up when driving.

Also, when running the Talon self test from the roboRIO configuration window with the robot enabled, Talons 2 and 4 do not report any current. Similarly, GetCurrent returns values of zero.

Is this expected behavior for a Talon in follower mode? If not, any suggestions?
Reply With Quote
  #2   Spotlight this post!  
Unread 28-01-2015, 19:40
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: Troubles with Talon SRX in Follower mode

Did you update the firmware? See Talon SRX Software reference manual
Reply With Quote
  #3   Spotlight this post!  
Unread 28-01-2015, 19:41
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: Troubles with Talon SRX in Follower mode

So what are the the LEDs doing? Solid orange? Did you follow the examples in the software ref manual?
Reply With Quote
  #4   Spotlight this post!  
Unread 28-01-2015, 19:45
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Re: Troubles with Talon SRX in Follower mode

I followed the examples. The lights are not doing anything.
Reply With Quote
  #5   Spotlight this post!  
Unread 28-01-2015, 19:53
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: Troubles with Talon SRX in Follower mode

By not doing anything do you mean both LEDs are off as though the Talon is not powered? If so double check your wiring with a voltmeter. Also check if the breaker is in place on the PDP. If they both look ok contact support@crosstheroadelectronics.com.
Reply With Quote
  #6   Spotlight this post!  
Unread 29-01-2015, 18:43
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Re: Troubles with Talon SRX in Follower mode

The lights are actually solid orange. We put a voltmeter on one of the follower Talons and read 26mV; ie, nothing.
Reply With Quote
  #7   Spotlight this post!  
Unread 29-01-2015, 22:22
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: Troubles with Talon SRX in Follower mode

So that means the Talons are being command to zero throttle. Either the mode is not correct or it's following the wrong Talon or the Master Talon isn't present on the bus.

If you use the self-test you can check the mode of the followers to confirm they are in slave follower mode. (section 2.4 in Talon SRX software reference manual).

Double check the Set() calls to your slave Talons. Remember the Set() is used to specify the master Talon ID. (section 9 in Talon SRX software reference manual).
Reply With Quote
  #8   Spotlight this post!  
Unread 01-02-2015, 19:02
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Re: Troubles with Talon SRX in Follower mode

The self test shows that the talons are in follower mode. When I run the self test with the motors running, the lead talons show a non-zero current value, but the following talons show 0 current.

Here is the code we are using to set the talon:

driveSubsystemMotorControllerBackLeft->SetControlMode(CANSpeedController::kFollower);
driveSubsystemMotorControllerBackLeft->Set(3);

driveSubsystemMotorControllerBackLeft is Talon 4.

If I understand correctly, this should set Talon 4 to follow Talon 3. We have similar code for Talon 2 to follow Talon 1.

Am I doing something wrong?
Reply With Quote
  #9   Spotlight this post!  
Unread 01-02-2015, 20:26
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: Troubles with Talon SRX in Follower mode

Yeah that looks right to me. The only thing I can think of is if the firmware is old. Did you update to 1.1 or 1.4?
Reply With Quote
  #10   Spotlight this post!  
Unread 01-02-2015, 20:26
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Troubles with Talon SRX in Follower mode

How are you commanding the "lead" Talons?
Reply With Quote
  #11   Spotlight this post!  
Unread 02-02-2015, 09:26
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Re: Troubles with Talon SRX in Follower mode

Talons were updated to 1.1.

The lead Talons are being commanded via ArcadeDrive. They are in ControlMode kPercentVbus=0. When Talons 2 and 4 are set to this mode, they behave correctly (lights go red or green depending on direction, current reads non-zero in Self Test while driving). It's only when they are set to ControlMode kFollower=5 that the lights stay orange and no current is read.

Thanks for all the suggestions.

My next plan is to move the Talon breakouts from Talons 1 and 3 to Talons 2 and 4, respectively and then make them the lead Talons and set 1 and 3 to followers just to see if anything is different.

I'm running out of ideas and we really need to get this to work.
Reply With Quote
  #12   Spotlight this post!  
Unread 02-02-2015, 09:33
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Troubles with Talon SRX in Follower mode

Are you passing just the two lead motors to the Arcade drive or all 4?
Reply With Quote
  #13   Spotlight this post!  
Unread 02-02-2015, 10:39
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: Troubles with Talon SRX in Follower mode

Can you post the source? Or send it to support@crosstheroadelectronics.com
Reply With Quote
  #14   Spotlight this post!  
Unread 02-02-2015, 12:25
jfitz0807 jfitz0807 is offline
Registered User
FRC #2877 (Ligerbots)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Newton, MA
Posts: 65
jfitz0807 is an unknown quantity at this point
Re: Troubles with Talon SRX in Follower mode

Our RobotDrive is using the 4 motor constructor. Should we just change it to the 2 motor constructor?
Reply With Quote
  #15   Spotlight this post!  
Unread 02-02-2015, 12:48
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 985
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Troubles with Talon SRX in Follower mode

Quote:
Originally Posted by jfitz0807 View Post
Our RobotDrive is using the 4 motor constructor. Should we just change it to the 2 motor constructor?
Yes, the RobotDrive object is calling Set on your follower Talons with a value from -1 to 1 which is causing your issue.
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 22:04.

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