Go to Post If people are getting offended at seeing other teams list their accomplishments, maybe they should spend less time whining and more time doing things to make their own team win. - artdutra04 [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 26-03-2010, 11:03
team3329 team3329 is offline
Registered User
None #3329
 
Join Date: Mar 2010
Location: Kingsland Ga
Posts: 34
team3329 is an unknown quantity at this point
Watchdog Idea

I've been noticing alot about the watchdog and its errors. Our robot is also experiencing watchdog errors but for some reason it only shows when our compressor is in the code. In Begin.vi I have: Open >> Start >> Set refnum.
and in Periodic Tasks I have : Get refnum >> Start

for some reason its still not working but there is not error - only watchdog. So i had an idea. WOuld it be possible to delete ALL watchdog references in the code. Then create a loop that would constantly read true and set the watchdog to feed that loop (this would be the only reference through out the entire code).

Could this work.
Any ideas would help Thanks
  #2   Spotlight this post!  
Unread 26-03-2010, 11:23
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,113
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: Watchdog Idea

Take the compressor stuff out of Periodic Tasks. A Compressor Open and a Compressor Start in Begin is all that is necessary. The code will take care of everything for you behind the scenes.

If you're going to feed the watchdog in a separate continuous loop, you have removed its usefulness and you might as well just disable it at the beginning.

Watchdog errors are trying to tell you that your code is taking too long to do what you're asking it to do. Instead of figuring out ways to ignore the problem, it's better to figure out what's causing them and correct the problem.
  #3   Spotlight this post!  
Unread 26-03-2010, 11:24
efoote868 efoote868 is offline
foote stepped in
AKA: E. Foote
FRC #0868
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Noblesville, IN
Posts: 1,425
efoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond reputeefoote868 has a reputation beyond repute
Re: Watchdog Idea

That sort of defeats the purpose of having a watchdog in the first place.

The watchdog is meant to make sure that your robot is not in an exceptional state, like, hey, everything is fine here! It prevents robots from rampaging out of control.


I would suggest you try and understand your code better before you go about circumventing safety features.
It may take more time, but you'll definitely learn more, and understand why its so important to write maintainable code.
__________________

Be Healthy. Never Stop Learning. Say It Like It Is. Own It. Like our values? Flexware Innovation is hiring!. We're looking for Senior Automation, Software, and System Engineers. Check us out!
  #4   Spotlight this post!  
Unread 26-03-2010, 11:26
TD912 TD912 is offline
Registered User
AKA: Chris Leung
FRC #1989 (Viking Robotics)
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2009
Location: Vernon, NJ
Posts: 156
TD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud ofTD912 has much to be proud of
Re: Watchdog Idea

Be sure you have the latest Driver Station and cRIO updates. They somehow fixed quite a bit of the watchdog errors we were getting for no apparent reason.

Plus you need the latest updates to compete anyway.
__________________
Zip-ties, hot glue, and duct tape.

2008 New York City Regional Champions - (41/555/1989)
2009 Brunswick Eruption 8 Finalists - (1989/56/1807)
2010 PARC XIII Champions - (25/341/1989)

Over The Bump
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Watchdog kgzak NI LabVIEW 6 10-03-2010 15:36
Watchdog!?!?!?! NC GEARS General Forum 38 23-01-2010 08:52
Watchdog darty NI LabVIEW 8 16-02-2009 09:11
Watchdog Barchechath Programming 6 10-02-2007 20:05
New Format - Good Idea/Bad Idea? Harrison Chairman's Award 4 07-11-2002 16:28


All times are GMT -5. The time now is 03: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