Go to Post PS: Please use the default font for postings, it is so much easier to read. - DonRotolo [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
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 26-02-2015, 06:36
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
roboRIO has solid red light and does not execute code properly

We have a roboRIO that has a solid red light and have found no shortage on the user rails. Additionally, when trying to use it, our user code is distorted and does not work (i.e. our lift won't move in reverse and driving forward/backward leads to strafing). What can this issue be?
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #2   Spotlight this post!  
Unread 26-02-2015, 07:34
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 988
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: roboRIO has solid red light and does not execute code properly

Which power faults does the DS power tab (last tab on the left) indicate?

The three options for a red power light are:
1. Debris shorting a rail (may have migrated inside the case/somewhere you can't really see.
2. Downstream short on a user rail (i.e. one of the things you have connected to it is shorting the rail).
3. Broken roboRIO.
Reply With Quote
  #3   Spotlight this post!  
Unread 26-02-2015, 08:59
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: roboRIO has solid red light and does not execute code properly

Part of your code problem is probably because you're using buttons to control your lift and you haven't considered the case where one button is saying "go reverse" and the other button is saying "don't go forward" immediately afterwards.

The strafing could be any of several things, from a simple misunderstanding of joystick axes to swapped PWM cables to miswired motors to incorrectly mounted wheels. You're going to have to give a very detailed description of what you are doing before anyone can zero in on what's causing what you are getting.
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2015, 13:02
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: roboRIO has solid red light and does not execute code properly

Quote:
Originally Posted by Alan Anderson View Post
Part of your code problem is probably because you're using buttons to control your lift and you haven't considered the case where one button is saying "go reverse" and the other button is saying "don't go forward" immediately afterwards.

The strafing could be any of several things, from a simple misunderstanding of joystick axes to swapped PWM cables to miswired motors to incorrectly mounted wheels. You're going to have to give a very detailed description of what you are doing before anyone can zero in on what's causing what you are getting.
We're using an axis on the joystick for the lift. Any value <1 triggers a shaky response from the jaguar. The code works perfectly on the competition bot but is very faulty on the practice bot which is built to spec. I believe the roboRIO may be at fault because of this.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #5   Spotlight this post!  
Unread 26-02-2015, 15:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: roboRIO has solid red light and does not execute code properly

Quote:
Originally Posted by pastelpony View Post
...Any value <1 triggers a shaky response from the jaguar...
Did you mean "<0"?

Last year, that would have been a clue to look at the power to the Digital Sidecar. It also hints that your drivebase problem is similarly due to motors not running properly when commanded negative. Your red roboRIO power LED says to start your troubleshooting with the 5v pins.

Begin by unplugging everything from the roboRIO's DIO, PWM, Analog, and Relay pins. If the power fault remains, use a strong light and magnifier to search for conductive debris at the pins. If you find nothing, you can try opening up the roboRIO and looking for foreign objects.

If, after a thorough inspection and vacuuming, the power light remains red, contact NI for instructions on how to proceed.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-02-2015, 21:50
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: roboRIO has solid red light and does not execute code properly

Quote:
Originally Posted by Alan Anderson View Post
Did you mean "<0"?

Last year, that would have been a clue to look at the power to the Digital Sidecar. It also hints that your drivebase problem is similarly due to motors not running properly when commanded negative. Your red roboRIO power LED says to start your troubleshooting with the 5v pins.

Begin by unplugging everything from the roboRIO's DIO, PWM, Analog, and Relay pins. If the power fault remains, use a strong light and magnifier to search for conductive debris at the pins. If you find nothing, you can try opening up the roboRIO and looking for foreign objects.

If, after a thorough inspection and vacuuming, the power light remains red, contact NI for instructions on how to proceed.
Cleaned it out and now it works 100%. Thank you.
__________________
Team 3525 Head Programmer (2014- ) - Java (Formerly LabVIEW)
Reply With Quote
  #7   Spotlight this post!  
Unread 03-03-2015, 07:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: roboRIO has solid red light and does not execute code properly

I'm still waiting for someone to find an actual moth inside their roboRIO shorting out the rails. Please call in that bug report -- take pictures too.

Greg McKaskle
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 05:40.

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