View Single Post
  Spotlight this post!  
Unread 03-04-2006, 22:41
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,830
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: timer after restart

Sorry, I've been sick and out of it for awhile.

Here's the re-initialization we're using that Matt referred to. Nothing fancy, it's only a simple check for dropped communications packets, followed by a reset and reinitialization of both the camera and Kevin Watson's camera.c state machine. We don't use the tracking code, so you might need more for that. A normal initialization takes 1.2 seconds, however, since we don't know how long power can be interrupted and because some states are funkier than others, we continue to periodically attempt to initialize the camera as long as it's not responding anyway.

Re-initializing doesn't help the roughly 1:30 chance the camera won't power up in any kind of state to communicate. For both that and the regular case we use rapidly blinking LEDs to indicate the camera has not (yet) initialized, because the camera LEDs can be in any state and aren't a good indicator of a hangup. The blinking LEDs are easier for the drive team to identify a camera initialization problem.

We tested this by repeatedly pulling the power connection for the camera, cycling the RC power, and mounting the camera on a jigsaw as a vibration source.

This file doesn't include checks we added for invalid and incomplete T packets we see periodically that can also affect results.

I forgot this was an rtf. Here's the true txt version.
Attached Files
File Type: txt reinit_camera.txt (5.5 KB, 50 views)
File Type: txt reinit_camera2.txt (4.6 KB, 42 views)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 04-04-2006 at 09:22.