Go to Post We don't require innovation; we simply encourage it. - Tristan Lall [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 28-03-2011, 17:26
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Watchdogs

Can someone give me a brief overview on what watchdogs are? what they do and how they work.
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #2   Spotlight this post!  
Unread 28-03-2011, 18:21
Chris Hibner's Avatar Unsung FIRST Hero
Chris Hibner Chris Hibner is offline
Eschewing Obfuscation Since 1990
AKA: Lars Kamen's Roadie
FRC #0051 (Wings of Fire)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1997
Location: Canton, MI
Posts: 1,488
Chris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond reputeChris Hibner has a reputation beyond repute
Re: Watchdogs

Quote:
Originally Posted by Ian McShane View Post
Can someone give me a brief overview on what watchdogs are? what they do and how they work.
A simple explanation is a watchdog is a protection in the software to be sure your code doesn't take too much time to execute. One example that may cause this is if your code gets stuck in an infinite loop.

How does this protect your robot (and protect you from getting hurt)?

Let's say you command your drive motors to full power. Then let's say your code gets stuck in an infinite loop somewhere. In this situation, your motors would be at full power forever and your robot would crash into something, which is bad. Since you aren't feeding the watchdog during the infinite loop, eventually the watchdog would time-out, killing the power to your motors.

Basically, the watchdog is protection in your code to kill your motors if something goes wrong in your code.
__________________
-
An ounce of perception is worth a pound of obscure.
Reply With Quote
  #3   Spotlight this post!  
Unread 28-03-2011, 18:26
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Watchdogs

Now watchdogs are virtual right? how do you program them.
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote
  #4   Spotlight this post!  
Unread 28-03-2011, 20:57
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Watchdogs

In the context of FRC and the 2011 software, the watchdog is there to keep your robot from going out of control due to loss of communication. It is all automatic. You don't do anything to program it.

The motor safety feature is sort of a minor watchdog that will help keep your robot from going out of control if you fail to set the drive motor values every tenth of a second. You should never need to "program" it. If you really know what you are doing, you can disable the safety feature to make certain programming patterns possible. If you're extra paranoid, you can enable the safeties on motors other than drive motors. But there's no reason for you to do anything with the safeties other than make sure you keep it happy by controlling the motors on a regular basis.
Reply With Quote
  #5   Spotlight this post!  
Unread 29-03-2011, 19:38
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: Watchdogs

oooooooohhhhhhhh...well that is handy.
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
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 09:25.

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