Surveyor Robotics Journal
   



email: support@surveyor.com

Surveyor Corporation home page

Subscribe to a syndicated RSS feed.

Subscribe with Bloglines

Archives
November 2008
October 2008
September 2008
August 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
Februray 2006
January 2006

       
Sun, 30 Jul 2006

firmware fix for camera freeze/reset bug

Recent versions of firmware had a problem with the camera locking up and requiring a restart fairly often. As it turns out, this was due to a bug in the firmware, and actually a pretty dumb bug at that. The timing is pretty tricky on the camera module, so we have logic to check whether it's responding on a regular basis, and if it's taking too long to respond, we restart the camera. Basically, we weren't resetting a timeout counter when we got good frames, so after a while (every 25-50 frames), the processor would reset the camera automatically, even if it was operating properly.

If you're working with the source code, it's a single line fix in the vicinity of line 296 of main.c. Just add the following line of code -

    retry_count = 0;

just ahead of these lines -

    if (decode_jpeg == FALSE) // just dump the captured jpeg, but don't decompress
        continue;

We've posted an updated version of the firmware as well at

http://www.surveyor.com/srvdownload/srv1.hex.073006

Just download and save as srv1.hex, and follow the instructions on the SRV-1 setup page for uploading new versinos of firmware. Please let us know if you have any problems with this version.

By the way, there's a minor change in the luminance threshold logic in the "wander mode" that's also included in this update. We're doing some other work on the autonomous functions, so there should soon be another update, but we wanted to put the camera bug fix out for testing in the mean time.

Posted Sun, 30 Jul 2006 16:20 | HTML Link | see additional stories ...