Go to Post As to "no fasteners," I have a gallon of epoxy, and I'm not afraid to spread it. - Rick TYler [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 12-03-2013, 01:58
Gary Suter Gary Suter is offline
Registered User
FRC #2439
 
Join Date: Mar 2012
Location: Maui
Posts: 16
Gary Suter is an unknown quantity at this point
Jaguars do not enable

We have been having a lot trouble with our robot lately. We were running our practice robot, and it was driving perfectly, when all of the systems died very suddenly. When enabled, the jaguars would not receive any signal (flashing yellow LED). The first thing we did was to write a new code, and when we define and run one motor at a time, that motor will work perfectly. This can be done with any of our 7 motors. When we tried to run more motors, we can define up to four jaguars, and all of them will run. As soon as we define a fifth jaguar however, even if we do not set the speed, none of the jaguars will receive a signal when enabled. Does anyone know what might cause this?
Reply With Quote
  #2   Spotlight this post!  
Unread 12-03-2013, 10:43
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Jaguars do not enable

Quote:
Originally Posted by Gary Suter View Post
We have been having a lot trouble with our robot lately. We were running our practice robot, and it was driving perfectly, when all of the systems died very suddenly. When enabled, the jaguars would not receive any signal (flashing yellow LED). The first thing we did was to write a new code, and when we define and run one motor at a time, that motor will work perfectly. This can be done with any of our 7 motors. When we tried to run more motors, we can define up to four jaguars, and all of them will run. As soon as we define a fifth jaguar however, even if we do not set the speed, none of the jaguars will receive a signal when enabled. Does anyone know what might cause this?
No, it doesn't sound normal. Do you mind posting the code that doesn't work?
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-03-2013, 11:37
rbrem rbrem is offline
Registered User
FRC #2439
 
Join Date: Jan 2013
Location: Maui Hawaii
Posts: 2
rbrem is an unknown quantity at this point
Re: Jaguars do not enable

The kids will post the code later today when they get to school. They were practicing driving, running the bot hard, when it stopped and wouldn't restart, so we suspected a burned out motor (CIM) or Jag. After determining with a simple test prgm that each Jag (using PWM)/motor worked individually, we tried building up a simple drive program using the IterativeRobot project. We are using a mecanum drive, so the prgm defines 2 Joysticks and 4 Jags (ie, Jaguar LFmotor = new Jaguar(1,1); and repeat for ports 2-4. We pasted code from the competition prgm to calc speed outputs for each motor, limited +/- 1.0, and simply call LFmotor.set( speed ) for each Jag inside the teleopPeriodic() method. With this code the bot runs fine. When the prgm is started, the Jags flash yellow while disabled and go solid yellow when enabled. If we simply add a 5th motor (ie, Jaguar shooterMotor = new Jaguar(1,5); ), without even further referencing the object elsewhere in the code, then after we enable, the Jags continue to flash yellow. We know that the teleopPeriodic function is being called. We have tried various combinations of our 7 Jag PWM ports and the results are always the same; works with four jags, not with 5+. Calling Jaguar isAlive() method returns true, even when the Jags don't see the signal. We tried Watchdog.feed(), even though we don't explicitly enable safety. We tried swapping the 9403 digital i/o module, and ribbon cable, no change. We will try swapping the DSC tonight. This has got us stumped. Thank you all for any suggestions you might be able to offer.
Reply With Quote
  #4   Spotlight this post!  
Unread 12-03-2013, 11:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,561
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Jaguars do not enable

Not running more then 4 speed controllers is a classic symptom of the digital sidecar not receiving 12v power. Are all 3 power LEDs brightly lit?
Reply With Quote
  #5   Spotlight this post!  
Unread 12-03-2013, 11:39
Tiffany-3568 Tiffany-3568 is offline
Registered User
FRC #3568
 
Join Date: Mar 2013
Location: Linden
Posts: 1
Tiffany-3568 is an unknown quantity at this point
Re: Jaguars do not enable

Have you try to reset them? If it not that them check your pwm cables for a bad one or one not plugged it. hope it helped
Reply With Quote
  #6   Spotlight this post!  
Unread 12-03-2013, 11:50
Jon Stratis's Avatar
Jon Stratis Jon Stratis is online now
Electrical/Programming Mentor
FRC #2177 (The Robettes)
Team Role: Mentor
 
Join Date: Feb 2007
Rookie Year: 2006
Location: Minnesota
Posts: 3,738
Jon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond reputeJon Stratis has a reputation beyond repute
Re: Jaguars do not enable

This really does sound like an electrical issue, not a programming issue - everything works one second, and doesn't the next with no changes in between. Since you know the Jags aren't getting a signal, odds are the root cause is located where that signal is coming from - the Digital Sidecar. Double and triple check it: Is it getting full power (all 3 status LED's next to the power port should be on - Batt, 5V, and 6V)? Is the RSL still working? Can you try swapping it out for a spare?

At LSR last weekend, our robot died on the field. The FMS showed a good connection, the radio and cRio were still up, and we were getting the battery voltage sent through correctly. When we got back to the pit to diagnose the issue, we saw that the speed controllers weren't getting any signal. Tracing this back to the one point of commonality they all share (besides the PDB, since they all had power), we saw the 5V LED on the DSC wasn't lit. The students quickly and efficiently swapped it out for one of the spares we brought, and everything worked fine after that! Testing the one that broke is on our to-do list... I'm hoping there were just some metal shavings that shorted the 5V rail and the thing is still fine, once we get it cleaned out!
__________________
2007 - Present: Mentor, 2177 The Robettes
LRI: North Star 2012-2016; Lake Superior 2013-2014; MN State Tournament 2013-2014, 2016; Galileo 2016; Iowa 2017
2015: North Star Regional Volunteer of the Year
2016: Lake Superior WFFA
Reply With Quote
  #7   Spotlight this post!  
Unread 13-03-2013, 00:42
Gary Suter Gary Suter is offline
Registered User
FRC #2439
 
Join Date: Mar 2012
Location: Maui
Posts: 16
Gary Suter is an unknown quantity at this point
Re: Jaguars do not enable

Thanks, Changed the DSC and all is well. Running like a champ once again.
See you on the field.
Reply With Quote
  #8   Spotlight this post!  
Unread 13-03-2013, 14:53
rbrem rbrem is offline
Registered User
FRC #2439
 
Join Date: Jan 2013
Location: Maui Hawaii
Posts: 2
rbrem is an unknown quantity at this point
Re: Jaguars do not enable

Joe Ross nailed it. The DSC was the problem. Next time we will mount it so that the LEDs are more visible. Thanks to all who took the time to read and respond. We are a little smarter today than yesterday.
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 09:50.

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