Go to Post Students learn from, are inspired by, and emulate their mentors. A team with a solid mentor base helps to create a productive, inspired, and ultimately successful group of students. - Jared Russell [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 17-01-2011, 18:50
FractalMan FractalMan is offline
Registered User
FRC #0167
 
Join Date: Jan 2011
Location: US
Posts: 1
FractalMan is an unknown quantity at this point
Robot Code and Communications disappear when Enable is pressed

I have been able to successfully upload code to the cRIO and the Driver Station acknowledges its presence. However, when I click "Enable", both the Communications and Robot Code lights go out on the Driver Station. This problem does not happen with Example code, only with other code I provide. Is there any hardware or code-related reason that this could happen?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-01-2011, 20:16
Bethie42's Avatar
Bethie42 Bethie42 is offline
Registered User
AKA: Bethany Carlson
FRC #0956 (Eagle Cybertechnology)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2008
Location: Oregon
Posts: 126
Bethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to beholdBethie42 is a splendid one to behold
Re: Robot Code and Communications disappear when Enable is pressed

The same thing happened to us just today. We appear to have 'fixed' it by commenting out any code which deals with switches/buttons on the driver station [we are testing stuff on last year's bot and DS].

I'm guessing there could be other problems [we saw a watchdog error at one point....] but if you've got any switch/button stuff going on, try commenting it out.
Hope that helps, we pulled our hair out over it....
__________________
Robot is now a verb.

We're back to square one...while we're at it, let's redesign square one!

Team 956: Celebrating ten years of FIRST!

Code:
Team record 2002-2011
2002: Highest Rookie Seed, AOR
2003, 2006, 2012: Xerox Creativity Award, AOR
2006: Semi-finalist, Sacramento Regional
2009: Quarter-finalist, AOR
2010: Quarter-finalist, AOR
2011: Semi-finalist, AOR, and Dean's List finalist, AOR 

Personal record: 
2008: Lead scout
2009: Lead scout, publicity
2010: Lead scout, publicity, fundraising, Chairman's, videography
2011: Team captain, lead programmer, fundraising, Chairman's, publicity, wrench-turning, Dean's List finalist at Autodesk Oregon Regional
Reply With Quote
  #3   Spotlight this post!  
Unread 21-01-2011, 18:58
jwakeman jwakeman is offline
Registered User
FRC #0063 (Red Barons)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: 16510
Posts: 182
jwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nicejwakeman is just really nice
Re: Robot Code and Communications disappear when Enable is pressed

I would make sense that the robot code light would go out if your software is crashing when you enable. If both are really going out maybe you are pegging the cpu and so the cRIO can't maintain the comm link anymore either.
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2011, 20:39
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,752
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: Robot Code and Communications disappear when Enable is pressed

Unless you peg the CPU in a realtme thread, the comm and code light should not be impacted by user tele code. Instead, watch the LEDs on the cRIO to see if it is rebooting. That is the most likely cause. If that is the case, look at new tele code, or fire up the debugger.

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 15:22.

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