Go to Post Turning is overrated - Allison [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #17   Spotlight this post!  
Unread 03-04-2010, 15:46
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,858
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Feeding the Watchdog in "Periodic Tasks"

Quote:
Originally Posted by The Lucas View Post
If your code messes up and throws a watchdog, it is hard to recover while connected to FMS.
This isn't true with FMS in my experience.
Most of the teams at SBPLI and NJ, the two events I volunteered at, went to Watchdog not Fed by the end of Autonomous simply when their drive code ran out early or when they had no autonomous code. There's nothing unusual with that. It's perfectly fine.

The user code on the cRIO continues to run. It isn't interrupted at all. Just the cRIO control outputs, e.g., PWM, are disabled by an unfed Watchdog.
Once you feed the watchdog again, the Watchdog re-enables the control outputs. That's why robots experience the momentary stalls when the Watchdog times out only for a second, but then come back again. There's nothing the Watchdog is doing that slows or otherwise blocks your code, and FMS isn't involved. The Watchdog has to work if FMS goes offline after all. It wouldn't be real useful if FMS or the field access point crashed and all the robots went bonkers...

One possibility is slow or marginally slow code. FMS does monitor the packet send times and there are quite a few instances I've seen or heard of where the robot packet times were 10 times slower than the other robots on the field. The cases where I was able to investigate turned out to be slow code or unbalanced parallel tasks.

Not directed at Brian, because I know he writes good code, but to the general CD readership...
It doesn't help to boost the Watchdog delay period. That's like turning up the car radio as a fix for that odd engine noise your car is making.
If you need to do that then something in your code needs to be streamlined. The Watchdog is there to help you discover those kinds of problems.

All that said, I agree with Brian about using the Watchdog for development and debugging purposes, not for competition use.
Misused, it causes more grief than it saves robots, and there's always the E-stop button which is an FMS control.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-04-2010 at 17:12.
Reply With Quote
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
watchdog not fed when "enable" is first pressed archwaykitten NI LabVIEW 3 09-03-2010 22:50
Need a Full "Watchdog for idiots" explanation K Lenox NI LabVIEW 9 16-02-2010 14:10
Enabling yields one "Watchdog not fed" flash Dylan5019 Programming 4 12-02-2010 23:45
Feeding the Watchdog Robopanda6 Java 3 31-01-2010 13:16
Periodic Tasks Luke Pike NI LabVIEW 1 04-02-2009 01:14


All times are GMT -5. The time now is 13:50.

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