View Single Post
  #3   Spotlight this post!  
Unread 03-02-2009, 12:34
rwood359 rwood359 is offline
Registered User
AKA: Randy
FRC #0359 (Hawaiian Kids)
Team Role: Mentor
 
Join Date: Aug 2008
Rookie Year: 2008
Location: Waialua, HI
Posts: 212
rwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to allrwood359 is a name known to all
Re: Camera power/comm problems disable the DSC

Quote:
Originally Posted by EricVanWyk View Post
I was having a similar problem this weekend. I think we fixed it by adding a 10ms delay in the camera loop AND feeding the watchdog.

The 10ms delay allows other code to execute. The watchdog enables the DSC.
I don't think that it is the watchdog timer. If it were, the DSC would not go enabled when the camera comes ready. I was running the stock two color camera demo v1. I looked at it with highlight execution enabled while the camera was OFF during startup. I believe that the lower timed loop was running, but the main loop was not. The main loop feeds the timer, but I think the the program is hung in the startup code and doesn't get to the main loop until the camera is ready.

If you pull the ethernet cable or power to the camera while the program is running the DSC will go to blink (it may be fast blink) reinstalling the cable re-enables the DSC. I'll try a delay when I go in today to see if it makes a difference.
Reply With Quote