Go to Post By the way, a piece of advice to all those who haven't gone to Manchester for Kickoff before: Go. It's something you have to do at least once in your time in FIRST. - Billfred [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 17-02-2011, 18:02
jackdawg's Avatar
jackdawg jackdawg is offline
Registered User
AKA: Wyatt Cerilli
FRC #1307
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Dover NH
Posts: 21
jackdawg is an unknown quantity at this point
watchdog

is watchdog completely necessary in this years code??
i ask because it seems to cause a fair amount of lag when when we add it in and it seems to be absent in the default code.

thanks

-Wyatt C FIRST Team 1307
  #2   Spotlight this post!  
Unread 17-02-2011, 18:09
2611.Shooter 2611.Shooter is offline
Programmer
AKA: Andrew Lavery
FRC #2611 (Vectors)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2008
Location: jackson, MI
Posts: 43
2611.Shooter is infamous around these parts2611.Shooter is infamous around these parts
Re: watchdog

whether or not it is required, it is a very good thing to have active in your code. without a watchdog, if your robot looses coms for even a second, it can really, really hurt itself. or get you a red card. however, though a very bad idea, i do believe that the watchdog is not required.
  #3   Spotlight this post!  
Unread 17-02-2011, 18:18
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Question Re: watchdog

We were just talking about this as well.. We were getting a "watchdog not fed" error in auton testing, but couldn't find the thing ANYWHERE in the default code that we modified.

Where should it go? In which loop/VI?
__________________
FRC 2656 | FTC 5526 | VEX 9656
  #4   Spotlight this post!  
Unread 17-02-2011, 18:22
JosephC's Avatar
JosephC JosephC is offline
FF: Breakfast Company
AKA: Joseph Cupchack
no team (FiM Volunteer Extraordinaire)
 
Join Date: Sep 2010
Rookie Year: 2011
Location: Waterford, Michigan
Posts: 1,752
JosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond reputeJosephC has a reputation beyond repute
Re: watchdog

Quote:
Originally Posted by 2611.Shooter View Post
whether or not it is required, it is a very good thing to have active in your code. without a watchdog, if your robot looses coms for even a second, it can really, really hurt itself. or get you a red card. however, though a very bad idea, i do believe that the watchdog is not required.
Watchdog isn't required but is highly recomended. The last thing you need is for your robot that your spent 6 weeks building to go haywire and get you a red card.
  #5   Spotlight this post!  
Unread 17-02-2011, 18:55
jackdawg's Avatar
jackdawg jackdawg is offline
Registered User
AKA: Wyatt Cerilli
FRC #1307
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Dover NH
Posts: 21
jackdawg is an unknown quantity at this point
Re: watchdog

ok. so if i add it where is it required???
which VI's??


thanks so much so far

-Wyatt C FIRST Team 1307
  #6   Spotlight this post!  
Unread 17-02-2011, 21:54
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,114
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: watchdog

Quote:
Originally Posted by jackdawg View Post
ok. so if i add it where is it required???
which VI's??
i don't have LabVIEW on this computer, but you should open the watchdog in begin and set its refnum. Then, it the autonomous and teleop while loops, make sure you include the Watchdog Feed VI (I don't remember which palate it's in off the top of my head)
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
  #7   Spotlight this post!  
Unread 17-02-2011, 22:51
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: watchdog

Watchdog is automatically implemented in the drive motors, and I'm pretty sure it's in the normal motors also. There's no reason to have another watchdog.

If you want to enable/disable it (it comes enabled) or change the timeout (it starts at .1 seconds), open up the drive motor open vi (in begin) and change the enum from enable to disable, or .1 to .2 or something.

If you want to make sure the watchdog is watching, get a freespinning motor or put the robot up on blocks, run it full power, and pull out the Ethernet cord. It should stop nearly immediately.
Closed Thread


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 23:41.

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