Go to Post Secure your battery well, or it will fly like a fish. - Nate Laverdure [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 02-22-2010, 03:24 PM
Joohoo's Avatar
Joohoo Joohoo is offline
Registered User
FRC #0340 (G.R.R.)
Team Role: Mentor
 
Join Date: Jun 2005
Rookie Year: 2005
Location: Rochester
Posts: 241
Joohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really niceJoohoo is just really nice
Send a message via AIM to Joohoo Send a message via Yahoo to Joohoo
Camera Code in main thread + watchdog = twitching servo?

Ok here is a problem that we are finding when we combined the default circle tracker code, with some modifications to remove the pan/tilt servos.

When we add this code into our moderately sized project, we find that our first servo that we instantiate twitches. This happens regardless of where which pwm port we plug it into.

My thoughts were that since the watchdog is running in the background and there are a few Thread.yield() calls in the canned code we got. We are confusing the watchdog making it start it's shtf shutdown sequence, starting with the first servo it can find, the one w/ the lowest address. Then after the thread stops yielding, it recovers and sets the servo to the specific value that it was before the thread yielded.

Is this a reasonable explanation or is this not possible with the way the watchdog works. Is this what happens when you yield the main robot thread?

Last edited by Joohoo : 02-22-2010 at 03:29 PM.
Reply With Quote
  #2   Spotlight this post!  
Unread 02-22-2010, 04:26 PM
Bart Bart is offline
Registered User
FRC #2625
 
Join Date: Feb 2010
Location: Canada
Posts: 5
Bart is an unknown quantity at this point
Re: Camera Code in main thread + watchdog = twitching servo?

Team 2625 here, we have the exact problem here, I think its probably because the camera takes too much time to process and the watchdog dies before it's fed.
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
Camera servo mcristina444 NI LabVIEW 12 02-14-2010 11:12 PM
Camera servo trouble Demothesis Electrical 5 01-27-2007 05:15 PM
CMU Camera same as last year? 2005 == 2006? Chris_Elston Programming 3 02-12-2006 06:33 PM
Same bore, same stroke, same mounting--is it legal? Billfred Pneumatics 2 02-20-2005 12:41 AM
Camera Servo Obi Programming 2 01-30-2005 05:09 PM


All times are GMT -5. The time now is 07:31 AM.

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