Go to Post My students like to win, so I'll stick to enabling that. - sdcantrell56 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 11-01-2010, 03:58 PM
krudeboy51's Avatar
krudeboy51 krudeboy51 is offline
Only Programmer
AKA: kory
FRC #0369 (369)
Team Role: Programmer
 
Join Date: Mar 2010
Rookie Year: 2010
Location: brooklyn
Posts: 151
krudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of lightkrudeboy51 is a glorious beacon of light
Send a message via AIM to krudeboy51
Re: WATCHDOG!!

Quote:
Originally Posted by EricVanWyk View Post
It sounds like the code that recharges your kicker is "blocking" - that is, it takes control and doesn't let other code execute while it is busy. You need to rewrite your kicker recharger so that it doesn't do this.

I'm guessing that when you first wrote the recharger, the watchdog would immediately trip and shutdown the robot... so you disabled it. Now you have unsafe robot!

Whenever you disable the watchdog because it finds an error, you are just giving yourself an extra problem and making the original error worse. I have yet to see an error where disabling the watchdog was the correct decision.
We basically disabled it because during build season, when we leave the robot on for a while it would show that the watchdog is not being fed. At that time we did not have this problem
Reply With Quote
  #2   Spotlight this post!  
Unread 11-01-2010, 05:29 PM
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,509
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: WATCHDOG!!

I'm guessing that you're trying to use a loop of some sort in your recharge code.

Loops are not necessary 99% of the time in coding FIRST robots - after all the code already loops at between 20hz and 50hz.

Loops monopolize the processor and will not allow it to move on and "feed the watchdog", unless of course your feed statement is inside the loop.
Reply With Quote
  #3   Spotlight this post!  
Unread 11-01-2010, 05:37 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,003
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: WATCHDOG!!

Quote:
Originally Posted by krudeboy51 View Post
I did, but set turned on because when ever our robot kicks, and I recharge it while driving, it will go out of control untill the robot is fully charge, so if we were going forward the robot will keep going forward untill the kicker is fully recharged.
Did you understand what Eric was explaining about the recharge code blocking execution? If not, it's worth talking it through until you understand it, and the proper way to design code so that it does not do this. The people here will help you. Ask questions.


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Watchdog kgzak NI LabVIEW 6 03-10-2010 03:36 PM
Watchdog Issues Kyledoo C/C++ 4 02-24-2010 12:31 AM
Watchdog!?!?!?! NC GEARS General Forum 38 01-23-2010 08:52 AM
Watchdog darty NI LabVIEW 8 02-16-2009 09:11 AM
Watchdog Barchechath Programming 6 02-10-2007 08:05 PM


All times are GMT -5. The time now is 12:09 PM.

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