Go to Post I guess nobody on the GDC has ever been whacked with a pool noodle. - Joe Ross [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 14-02-2014, 11:46
defcon4 defcon4 is offline
Registered User
FRC #3340
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Union City
Posts: 3
defcon4 is an unknown quantity at this point
Watchdog Question

Hi...I was wondering if someone could help me out with Watchdog. We are using Java for the first time and everything seems to be going well. I have seen sample code around the net using the code getWatchdog in the simple robot template. I have not seen it used in the iterative robot template and that is what our team is using. We are using a mecanum drive system and pneumatics for the rest of our system. My question is do I have to use Watchdog in the iterative robot template and if so where and how do I code it. Thank you
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2014, 11:47
notmattlythgoe's Avatar
notmattlythgoe notmattlythgoe is offline
Flywheel Police
AKA: Matthew Lythgoe
FRC #2363 (Triple Helix)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: Newport News, VA
Posts: 1,728
notmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond reputenotmattlythgoe has a reputation beyond repute
Re: Watchdog Question

Quote:
Originally Posted by defcon4 View Post
Hi...I was wondering if someone could help me out with Watchdog. We are using Java for the first time and everything seems to be going well. I have seen sample code around the net using the code getWatchdog in the simple robot template. I have not seen it used in the iterative robot template and that is what our team is using. We are using a mecanum drive system and pneumatics for the rest of our system. My question is do I have to use Watchdog in the iterative robot template and if so where and how do I code it. Thank you
As far as I know, you don't have to worry about it.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2014, 14:06
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 434
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Watchdog Question

The IterativeRobot class takes care of feeding the watchdog for you. You don't need to mess with it if you don't want to.

http://team2168.org/javadoc/src-html....html#line.145

My assumption is that SimpleRobot does something similar.
__________________
http://team2168.org
Reply With Quote
  #4   Spotlight this post!  
Unread 14-02-2014, 15:07
defcon4 defcon4 is offline
Registered User
FRC #3340
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Union City
Posts: 3
defcon4 is an unknown quantity at this point
Re: Watchdog Question

Thank you that was very helpful.
Reply With Quote
  #5   Spotlight this post!  
Unread 14-02-2014, 15: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,590
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: Watchdog Question

Quote:
Originally Posted by otherguy View Post
My assumption is that SimpleRobot does something similar.
The watchdog is disabled in RobotBase by default (both SimpleRobot and IterativeRobot extend RobotBase). SimpleRobot does not feed the watchdog in the background like IterativeRobot, because there is no background in SimpleRobot. If the user enables the watchdog in SimpleRobot, the user must also feed it.
Reply With Quote
  #6   Spotlight this post!  
Unread 14-02-2014, 19:56
defcon4 defcon4 is offline
Registered User
FRC #3340
Team Role: Mentor
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Union City
Posts: 3
defcon4 is an unknown quantity at this point
Re: Watchdog Question

Awesome! Thanks!
Reply With Quote
  #7   Spotlight this post!  
Unread 25-02-2014, 08:14
Herbblood's Avatar
Herbblood Herbblood is offline
Knowledgeable
AKA: Ally
FRC #3044 (OxBE4)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2008
Location: Ballston Spa
Posts: 247
Herbblood is an unknown quantity at this point
Re: Watchdog Question

Just don't mess with watchdog, we've had problems with watchdog before and perfer not to use it.
__________________
Off to WPI!
Go OxBE4
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 12:41.

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