Go to Post JVN, thanks for working with me. You will make a great MC anywhere. Folks, he actually loosened up and fit right in. - Steve W [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 07-02-2007, 16:23
JBotAlan's Avatar
JBotAlan JBotAlan is offline
Forever chasing the 'bot around
AKA: Jacob Rau
FRC #5263
Team Role: Mentor
 
Join Date: Sep 2004
Rookie Year: 2004
Location: Riverview, MI
Posts: 723
JBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond reputeJBotAlan has a reputation beyond repute
Send a message via AIM to JBotAlan Send a message via Yahoo to JBotAlan
Re: Watchdog

If it's in reference to what I think it is, you are referring to the watchdog timer in our robot controller.

Basically, our user processor has to get data from the master processor when it comes in, and the user processor has to spit the new data outputs (to the motors, Spike relays, etc.) to the master processor. If the user code takes too long between grabbing data and spitting it back, the "watchdog" timer freezes our processor and flashes the "Code Error" light--it's red, so it's known as the "red light of death".

The user code doesn't have to do anything special to use the watchdog timer; it's just there--a feature of the IFI-proprietary master code loaded on the robot controller. We don't turn it on or off or set the delay; it's just there. If you're programming in easyC, don't worry about a thing. If you're programming in MPLAB, try not to put for loops or other extremely time-consuming tasks in your code, and if you do, make sure to thoroughly test it before trusting it.

Don't worry about the watchdog timer; it'll only shut your code down if you've written code that takes too long to execute.

And if you need more help, as always, post back and we'll try to help.

JBot
__________________
Aren't signatures a bit outdated?
 


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 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