|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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
|
|
#2
|
|||||
|
|||||
|
Re: Watchdog Question
Quote:
|
|
#3
|
||||
|
||||
|
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. |
|
#4
|
|||
|
|||
|
Re: Watchdog Question
Thank you that was very helpful.
![]() |
|
#5
|
||||||
|
||||||
|
Re: Watchdog Question
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.
|
|
#6
|
|||
|
|||
|
Re: Watchdog Question
Awesome! Thanks!
![]() |
|
#7
|
||||
|
||||
|
Re: Watchdog Question
Just don't mess with watchdog, we've had problems with watchdog before and perfer not to use it.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|