Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Watchdog Question (http://www.chiefdelphi.com/forums/showthread.php?t=126438)

defcon4 14-02-2014 11:46

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

notmattlythgoe 14-02-2014 11:47

Re: Watchdog Question
 
Quote:

Originally Posted by defcon4 (Post 1343032)
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.

otherguy 14-02-2014 14:06

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.

defcon4 14-02-2014 15:07

Re: Watchdog Question
 
Thank you that was very helpful.:)

Joe Ross 14-02-2014 15:38

Re: Watchdog Question
 
Quote:

Originally Posted by otherguy (Post 1343135)
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.

defcon4 14-02-2014 19:56

Re: Watchdog Question
 
Awesome! Thanks!:)

Herbblood 25-02-2014 08:14

Re: Watchdog Question
 
Just don't mess with watchdog, we've had problems with watchdog before and perfer not to use it.


All times are GMT -5. The time now is 22:38.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi