Go to Post just flat out, full force, take no prisoners driving - spears312 [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 12-02-2010, 14:24
daniel_3158 daniel_3158 is offline
Registered User
FRC #3158
 
Join Date: Feb 2010
Location: México
Posts: 4
daniel_3158 is an unknown quantity at this point
Wink Watchdog Problem

Hi Everyone!

Im from team 3158, we'/re a rookie team, I wanted to ask you why when I run the Autonomous Independent mode I have a message on the DS, that says "Watchdog not Feed", I have tried the Autonomous Iterative mode and have the same problem. The thing is when I erase all of the pre-establish code it works. I also wanted to know why in the Independent code, there's a delay and Feed block and why in the Iterative code theres only a Feed Block?


Thanks a lot!! Regards from Mexico!!
__________________
Code:
  #2   Spotlight this post!  
Unread 12-02-2010, 14:37
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
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,756
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: Watchdog Problem

The Autonomous Independent code shuts itself down if it cannot see the target right away. When it shuts down you get the Watchdog msg.

Independent uses Delay & Feed, because once control enters the While loop it can stay there for awhile and the Wathchdog needs to be delayed so it doesn't expire and stop everything.

Iterative only needs Feed, because it executes just once and then leaves. It gets called over and over again and will feed the Watchdog each time while Independent only gets called one time.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
  #3   Spotlight this post!  
Unread 12-02-2010, 14:47
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: Watchdog Problem

Quote:
Originally Posted by daniel_3158 View Post
I also wanted to know why in the Independent code, there's a delay and Feed block and why in the Iterative code theres only a Feed Block?
Autonomous Independent runs as a separate, self-contained task. If you want to include delays, Delay and Feed is the way to keep the watchdog happy.

Autonomous Iterative gets called 50 times a second. It should not include long-running loops or intentional delays. It should do its thing quickly and finish, ready to run again a moment later. In order to sequence actions with specific timing, you need something like a state machine and timers that can be started and tested to see when they elapse.
  #4   Spotlight this post!  
Unread 12-02-2010, 15:22
daniel_3158 daniel_3158 is offline
Registered User
FRC #3158
 
Join Date: Feb 2010
Location: México
Posts: 4
daniel_3158 is an unknown quantity at this point
Re: Watchdog Problem

Thanks
__________________
Code:
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with System Watchdog JSonntag NI LabVIEW 14 20-02-2010 11:31
example project Autonomous mode Watchdog problem qpang NI LabVIEW 0 08-02-2010 16:17
Watchdog!?!?!?! NC GEARS General Forum 38 23-01-2010 08:52
Watchdog darty NI LabVIEW 8 16-02-2009 09:11
Watchdog Barchechath Programming 6 10-02-2007 20:05


All times are GMT -5. The time now is 16:03.

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