Log in

View Full Version : Watchdog or MotorSafety?


ProgrammerBlake
27-02-2012, 18:04
I am just wondering are we using watchdog still this year, or are we using Motor Safety this year. Sorry if this is a silly question.

Ether
27-02-2012, 18:33
I am just wondering are we using watchdog still this year, or are we using Motor Safety this year. Sorry if this is a silly question.

Both!

ProgrammerBlake
28-02-2012, 17:01
Thank you Ether. I have another question then, we have motors other than drive (like shooting and picking stuff up) would those motors need the MotorSafety method and watchdog. Thanks in advance.

RufflesRidge
28-02-2012, 18:20
The User Watchdog is available but disabled by default. The Motor Safety is Enabled by default for RobotDrive objects but disabled by default for Jaguar or Victor objects.

I encourage the teams I work with to enable Motor Safety on all objects for two reasons, the first is safety and the second is it is a useful indicator that the code is not running as fast as it should be if these start tripping.

~Cory~
28-02-2012, 22:45
Remember both systems still do not account for careless mistakes such as running motors against each other or threaded while loops that update. Motorsafety/watchdog should be a backup to common sense and not the primary failsafe to errors.

Last year we lost three FP motors to our autonomous due to some very stupid* mistakes.

*A mistake becomes stupid when repeated after one has already learned from it. I forgot to document, double check and test before running in the field. The heat of competition can cause heat stress :P

ProgrammerBlake
01-03-2012, 16:34
Okay, thank you guys so much this was really helpful. :D

touchdownjesus4
01-03-2012, 20:03
How would one go about enabling either of these for jaguars?

ProgrammerBlake
05-03-2012, 17:27
Is either of these required, or just one, both. Sorry if this is a silly question, thanks in advance.

RufflesRidge
07-03-2012, 12:00
Is either of these required, or just one, both. Sorry if this is a silly question, thanks in advance.

Neither is required. The MotorSafety is enabled by default for RobotDrive objects but not for Victor, Jaguar or Relay objects.

techkid86
08-03-2012, 23:19
To be honest, i would just use motor safety. if you can get both working though more power to you. my first year programing i had some bad experience with watchdog... it blew up our code cause it was running a little slow because there was a lot of it. be very careful when using it in competition, make sure the kill time limit is large enough for a little error. (also accommodate for field lagg.