Go to Post There is a very fine line between passion and emotion, sometime it gets crossed. Let's not confuse the two. - JohnBoucher [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 19-01-2012, 11:44
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
CAN jags not working

We are having a strange problem with our CAN Jags. When we enumerate the CAN bus in LabVIEW, all of the Jags register correctly. However, when we tell it to give voltage to a motor, it returns an error that means that the CAN device could not be found. We matched the open motor.vi to the CAN Enum readings, but it didn't work. We know that all of out jags work correctly, as the Ti software was able to drive the motors in a test. Any Suggestions?
  #2   Spotlight this post!  
Unread 19-01-2012, 11:48
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: CAN jags not working

I had similar issues and it boiled down to not having the driver station enabling the cRIO, even while using the CAN example. If you are already enabling the cRIO, are you using 2CAN or serial? More information will be required, maybe a photo of the test setup?
__________________
Eat, Sleep, Build Robots
  #3   Spotlight this post!  
Unread 19-01-2012, 11:58
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: CAN jags not working

we are using serial.
  #4   Spotlight this post!  
Unread 19-01-2012, 12:12
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: CAN jags not working

How long are your CAN cables?
Are you using a terminator on the last jaguar?
What device IDs are you using?
How fast is the loop for CAN? (remember serial is like 1/10th of the CAN bandwidth)
What firmware is on the cRIO and the jaguars?
You can Enum without being enabled, that's why I asked before.
__________________
Eat, Sleep, Build Robots
  #5   Spotlight this post!  
Unread 19-01-2012, 12:55
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: CAN jags not working

Quote:
Originally Posted by Alex698 View Post
How long are your CAN cables?
Are you using a terminator on the last jaguar?
What device IDs are you using?
How fast is the loop for CAN? (remember serial is like 1/10th of the CAN bandwidth)
What firmware is on the cRIO and the jaguars?
You can Enum without being enabled, that's why I asked before.
all but the first are less than 6 in
yes
3 and 11
I don't know
latest firmware
yes, teleop is enabled
  #6   Spotlight this post!  
Unread 19-01-2012, 17:06
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: CAN jags not working

OK, so just to verify:
You have something close to this?

Default 2012 robot project
Begin.vi:
Open2Motor VI -> CAN Jaguar -> Replace PWM drop-down with device IDs -> MotorRef

Teleop.vi:
MotorRef -> Loop[Motor control] -> CloseMotorRef

It may also help to try one jaguar, at a time.
__________________
Eat, Sleep, Build Robots

Last edited by Alex698 : 19-01-2012 at 17:06. Reason: more thoughts
  #7   Spotlight this post!  
Unread 19-01-2012, 17:13
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: CAN jags not working

Yeah, that's what we have. by the way, i forgot to mention that when we try to move the motor, the jag's light blinks quicker.
  #8   Spotlight this post!  
Unread 19-01-2012, 17:35
Alex698's Avatar
Alex698 Alex698 is offline
Sparky
FRC #2449 (Out of Orbit Robotics)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Arizona
Posts: 114
Alex698 is a jewel in the roughAlex698 is a jewel in the roughAlex698 is a jewel in the rough
Send a message via AIM to Alex698
Re: CAN jags not working

Quote:
Originally Posted by blackflame2996 View Post
Yeah, that's what we have. by the way, i forgot to mention that when we try to move the motor, the jag's light blinks quicker.
What color does the jaguar blink?
If red or green, check to see if there is voltage on the M+ and M- outputs, if not the internal jaguar hardware is bad. The LED will blink because the CAN and PWM interface is isolated from normal jaguar functions in-case of a failure it can keep communication alive.
__________________
Eat, Sleep, Build Robots
  #9   Spotlight this post!  
Unread 19-01-2012, 17:56
slijin's Avatar
slijin slijin is offline
Pockets
AKA: Samuel Lijin
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York City
Posts: 537
slijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to beholdslijin is a splendid one to behold
Re: CAN jags not working

Quote:
Originally Posted by Alex698 View Post
What color does the jaguar blink?
If red or green, check to see if there is voltage on the M+ and M- outputs, if not the internal jaguar hardware is bad. The LED will blink because the CAN and PWM interface is isolated from normal jaguar functions in-case of a failure it can keep communication alive.
Rapidly flashing yellow indicates that the CAN ID is invalid, not that hardware is damaged. Refer to Table 2-2 here for more details.

Have you correctly configured and updated the Jaguars with the BDC-COMM interface?
__________________

2010-12 CT Chairman's
2011 Galileo 5th seed
2010 NY Regional Winners
  #10   Spotlight this post!  
Unread 19-01-2012, 19:59
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: CAN jags not working

Here is a snapshot of the VI that we built to run a motor. the Jags stopped changing the rate of blinking, and are now not showing any indication of being connected outside of Enum.http://www.chiefdelphi.com/forums/at...d=13270212 94
Attached Thumbnails
Click image for larger version

Name:	CAN Code.png
Views:	31
Size:	186.5 KB
ID:	11460  

Last edited by blackflame2996 : 19-01-2012 at 20:01.
  #11   Spotlight this post!  
Unread 20-01-2012, 00:26
blackflame2996's Avatar
blackflame2996 blackflame2996 is offline
Alumni
AKA: David Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Alumni
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Colorado springs, CO
Posts: 67
blackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to allblackflame2996 is a name known to all
Re: CAN jags not working

We are going to use PWM for now, if anyone sees a problem in the test code, please alert me.
__________________
2009 Regional Winners
2011 Regional Chairman's Award
2012 Regional Winners
2013 Regional Chairman's Award
  #12   Spotlight this post!  
Unread 23-01-2012, 09:59
mdonahue mdonahue is offline
Registered User
AKA: Mike Donahue
FRC #2996 (Cougars Gone Wired)
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Colorado Springs
Posts: 4
mdonahue is an unknown quantity at this point
Re: CAN jags not working

Thank you everybody for the advice. The problem turned out to be a faulty cRio. We received our new cRios on Friday and everything is working fine.
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:09.

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