Go to Post Most importantly, get some sleep. - Libby K [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 02-02-2016, 18:35
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Need help, talon srx labview coding

the drive train is working however the other motors are not even though we referred to the software manual to make the code and don't know the issue. We dont see anybody else experiencing this issue so if anybody could help.
https://www.dropbox.com/sh/quwlwd2kl...hpl8WvUEa?dl=0
  #2   Spotlight this post!  
Unread 02-02-2016, 19:14
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: 523
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Need help, talon srx labview coding

Hi Alex. Welcome to Chief Delphi.

Maybe start with what you are observing versus what you are expecting?
  #3   Spotlight this post!  
Unread 02-02-2016, 19:24
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Need help, talon srx labview coding

Quote:
Originally Posted by ozrien View Post
Hi Alex. Welcome to Chief Delphi.

Maybe start with what you are observing versus what you are expecting?
We are getting blinking orange, no response, on any motor controllers other than the working drivetrain (blinks green/red with throttle)
  #4   Spotlight this post!  
Unread 03-02-2016, 11:47
Nirnaeth Nirnaeth is offline
Coach/Mentor
AKA: Michael Liang
FRC #6367 (The Brooke High ElectroLights)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2001
Location: Boston, MA
Posts: 46
Nirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud ofNirnaeth has much to be proud of
Re: Need help, talon srx labview coding

Hello,

Can you answer these questions first?

1. Are your Talon SRX motor controllers set up in CAN mode (each motor controller serially hooked up) or with PWM (each motor controller connecting directly to the roboRio?

2. Do you have the other motors opened up in Begin.vi?

3. What buttons do you have mapped to each of the other motors?

4. Can you take a screenshot of each of the following: Begin.vi, Teleop.vi, and Finish.vi? (This is purely selfish, as I don't currently have Labview to be able to open your block diagram.)
__________________
Lead Mentor - Team 6367 - The Brooke High ElectroLights
Former Mentor - Team 5969 - The English Skunkworks
Former Mentor - Team 1754 - The Excel Nitro Knights
  #5   Spotlight this post!  
Unread 03-02-2016, 13:36
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Need help, talon srx labview coding

Quote:
Originally Posted by Nirnaeth View Post
Hello,

Can you answer these questions first?

1. Are your Talon SRX motor controllers set up in CAN mode (each motor controller serially hooked up) or with PWM (each motor controller connecting directly to the roboRio?

2. Do you have the other motors opened up in Begin.vi?

3. What buttons do you have mapped to each of the other motors?

4. Can you take a screenshot of each of the following: Begin.vi, Teleop.vi, and Finish.vi? (This is purely selfish, as I don't currently have Labview to be able to open your block diagram.)
1) CAN
2)We have 8 total mcs wired but cant even get that single motor code to work
3) we dont have any motors mapped to buttons but another joystick instead
4) https://www.dropbox.com/sh/xkx3czbkt...3DNXCvWsa?dl=0
  #6   Spotlight this post!  
Unread 03-02-2016, 13:56
pribusin's Avatar
pribusin pribusin is offline
Uber Alien
AKA: Mike 1
FRC #4004 (M.A.R.S. Rovers)
Team Role: Coach
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Michigan
Posts: 170
pribusin has a spectacular aura aboutpribusin has a spectacular aura aboutpribusin has a spectacular aura about
Re: Need help, talon srx labview coding

Without confirming with our programmers, I believe your motor constants are not correct in Begin.vi. Instead of '0', '1', ours read 'PWM0', 'PWM1' etc. from a drop-down list-box constant. The number corresponds to the CAN ID of the talons. Best way I found to do a constant is to right-click the input terminal of the vi and select 'create constant'. That way you're ensured that the correct type is created.
  #7   Spotlight this post!  
Unread 03-02-2016, 14:04
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Need help, talon srx labview coding

Quote:
Originally Posted by pribusin View Post
Without confirming with our programmers, I believe your motor constants are not correct in Begin.vi. Instead of '0', '1', ours read 'PWM0', 'PWM1' etc. from a drop-down list-box constant. The number corresponds to the CAN ID of the talons. Best way I found to do a constant is to right-click the input terminal of the vi and select 'create constant'. That way you're ensured that the correct type is created.
This is correct if you are using PWM, but for CAN Talons, the constants will be just a number.

Quote:
Originally Posted by Team5860-Alex View Post
1) CAN
2)We have 8 total mcs wired but cant even get that single motor code to work
3) we dont have any motors mapped to buttons but another joystick instead
4) https://www.dropbox.com/sh/xkx3czbkt...3DNXCvWsa?dl=0

Have you gone through and given each Talon a unique ID through the RoboRIO webpage? They may all still have the default ID set. From what I can tell, your code looks good and should do what you want it to.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #8   Spotlight this post!  
Unread 03-02-2016, 14:42
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Need help, talon srx labview coding

Quote:
Originally Posted by Cecil View Post
This is correct if you are using PWM, but for CAN Talons, the constants will be just a number.



Have you gone through and given each Talon a unique ID through the RoboRIO webpage? They may all still have the default ID set. From what I can tell, your code looks good and should do what you want it to.
yup and updated each one's firmware. I even referred to the software manual and it says it is right too, but all we get is blinking orange, unresponsive motors controllers (besides the working drivetrain)
  #9   Spotlight this post!  
Unread 03-02-2016, 14:45
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Need help, talon srx labview coding

Quote:
Originally Posted by Team5860-Alex View Post
yup and updated each one's firmware. I even referred to the software manual and it says it is right too, but all we get is blinking orange, unresponsive motors controllers (besides the working drivetrain)
Sounds like something on the CAN bus isn't communicating correctly. Could you explain how you have your Talons wired on the CAN bus just as a sanity check? There could be a bad crimp somewhere after your second Talon, or the termination resistor could be in the wrong position.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #10   Spotlight this post!  
Unread 03-02-2016, 15:34
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 519
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Need help, talon srx labview coding

In your begin.vi, can you check and see if your CAN constants are wired to the right input terminal.

If you used the labview "broom" (last icon on the top icon button menu) to clean up the diagram, you may see that the can id constant is wired to the "master id device number" as opposed to the "device number"

The master id device number is used if the mode is selected to slave.
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #11   Spotlight this post!  
Unread 03-02-2016, 15:43
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 107
Coach Seb is an unknown quantity at this point
Re: Need help, talon srx labview coding

Cecil, I believe we do not have the termination resistor you are referring to. Is this an extra components to add to the CAN network ?
  #12   Spotlight this post!  
Unread 03-02-2016, 15:52
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: Need help, talon srx labview coding

Quote:
Originally Posted by Coach Seb View Post
Cecil, I believe we do not have the termination resistor you are referring to. Is this an extra components to add to the CAN network ?
Termination resistors are present in a few control system components required on the robot. One such device is the RoboRIO, and the other is in the Power Distribution Panel. When wiring the CAN bus, it is a good practice to start the bus at the RoboRIO, add Talon SRX controllers and a Pneumatic Control Module (if required), then end the chain at the PDP. On the PDP itself, there is a small jumper that can set the termination resistor on or off, depending on if it is on the end of your CAN network.
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #13   Spotlight this post!  
Unread 03-02-2016, 17:07
tr6scott's Avatar
tr6scott tr6scott is offline
Um, I smell Motor!
AKA: Scott McBride
FRC #2137 (TORC)
Team Role: Mentor
 
Join Date: Dec 2007
Rookie Year: 2005
Location: Oxford, MI
Posts: 519
tr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond reputetr6scott has a reputation beyond repute
Re: Need help, talon srx labview coding

Alex stated that he updated the firmware and assigned proper ids to the devices, this would indicate the can is wired, and working.

Seeing the current code is only working with one motor "arm", yet you have mulitples wired, can you check with the webpage, "Flash LED" and make sure your arm motor is wired to the srx you that is that you assigned for arm.

Were you able to check the begin.vi terminals?
__________________
The sooner we get behind schedule, the more time we have to catch up.

  #14   Spotlight this post!  
Unread 03-02-2016, 18:32
Team5860-Alex Team5860-Alex is offline
Registered User
FRC #5860
 
Join Date: Jan 2016
Location: Algonac, MI
Posts: 22
Team5860-Alex is an unknown quantity at this point
Re: Need help, talon srx labview coding

Quote:
Originally Posted by tr6scott View Post
Alex stated that he updated the firmware and assigned proper ids to the devices, this would indicate the can is wired, and working.

Seeing the current code is only working with one motor "arm", yet you have mulitples wired, can you check with the webpage, "Flash LED" and make sure your arm motor is wired to the srx you that is that you assigned for arm.

Were you able to check the begin.vi terminals?
yeah that may be the problem, thats why its blinking orange, it can't find the right id

Last edited by Team5860-Alex : 03-02-2016 at 18:34.
  #15   Spotlight this post!  
Unread 03-02-2016, 19:26
Coach Seb's Avatar
Coach Seb Coach Seb is offline
Registered User
AKA: Sebastien Cournoyer
FRC #5860 (Full Metal Muskrats)
Team Role: Coach
 
Join Date: Sep 2015
Rookie Year: 2015
Location: Algonac, MI
Posts: 107
Coach Seb is an unknown quantity at this point
Thank you guys for your help !!!! Alex
Mentioned that he believe one of the answer made sense and he went to our lab to test... He just text me that it worked !!!! Im sure he will be posting his results here in a minute.... Smart kid !!!
Closed Thread


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 02:02.

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