Go to Post If Andy asked y'all to stand on your head, would you do that, too? ;) - Madison [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 22-02-2010, 15:24
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 : 22-02-2010 at 15:29.
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
Camera servo mcristina444 NI LabVIEW 12 14-02-2010 23:12
Camera servo trouble Demothesis Electrical 5 27-01-2007 17:15
CMU Camera same as last year? 2005 == 2006? Chris_Elston Programming 3 12-02-2006 18:33
Same bore, same stroke, same mounting--is it legal? Billfred Pneumatics 2 20-02-2005 00:41
Camera Servo Obi Programming 2 30-01-2005 17:09


All times are GMT -5. The time now is 08: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