Chief Delphi

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

ProgrammerBlake 27-02-2012 18:04

Watchdog or MotorSafety?
 
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

Re: Watchdog or MotorSafety?
 
Quote:

Originally Posted by ProgrammerBlake (Post 1135729)
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

Re: Watchdog or MotorSafety?
 
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

Re: Watchdog or MotorSafety?
 
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

Re: Watchdog or MotorSafety?
 
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

Re: Watchdog or MotorSafety?
 
Okay, thank you guys so much this was really helpful. :D

touchdownjesus4 01-03-2012 20:03

Re: Watchdog or MotorSafety?
 
How would one go about enabling either of these for jaguars?

ProgrammerBlake 05-03-2012 17:27

Re: Watchdog or MotorSafety?
 
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

Re: Watchdog or MotorSafety?
 
Quote:

Originally Posted by ProgrammerBlake (Post 1139661)
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

Re: Watchdog or MotorSafety?
 
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.


All times are GMT -5. The time now is 09:48.

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