Go to Post They could release an update saying they were going to give every team free puppies and kittens, and many teams would vehemently complain this change was too late to budget dry kibbles into their budget. - artdutra04 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 06-03-2006, 16:47
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Robot Reset & Camera Initalization

We encountered a problem this weekend and I wonder if anyone else has already figured this out.

When we power up the robot, it initializes the camera and everything works fine.

If we press the reset button on the RC, we get (with camera DEBUG defined),
Quote:
Camera: Initialized abnormally with code 131
over and over.

With a tether cable connected, pressing the reset_robot button on the OI works too.
__________________
Don Reid
  #2   Spotlight this post!  
Unread 06-03-2006, 16:56
Unsung FIRST Hero
Greg Marra Greg Marra is offline
[automate(a) for a in tasks_to_do]
FRC #5507 (Robotic Eagles)
Team Role: Mentor
 
Join Date: Oct 2004
Rookie Year: 2005
Location: San Francisco, CA
Posts: 2,030
Greg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond reputeGreg Marra has a reputation beyond repute
Re: Robot Reset & Camera Initalization

We found that the camera would "freeze" when we reset the robot (or even just sometimes for no reason). The best fix we could find was to HOLD the robot reset button on the RC for about 5 seconds. For some reason (probably the camera's memory persisting otherwise), the camera re-initializes correctly after you release reset.

Last year, we found the same problem where the camera would sometimes "freeze" up. Our solution then was to re-initialize the camera entirely if we weren't getting frames back, but that would be an ugly solution.
  #3   Spotlight this post!  
Unread 06-03-2006, 17:58
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Robot Reset & Camera Initalization

It might have something to do with the Static boot_initialization_flag... if you read the thread about the 8.3 bug, people mention static variables not re initializing and i think this might have somthing to do with the flag being static, im going to play around with it this week and check it out. I think we are all experiancing this same problem...
  #4   Spotlight this post!  
Unread 06-03-2006, 18:45
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: Robot Reset & Camera Initalization

I describe the same problem in the thread Camera does not search in autonomous mode after reset. We never got to test my possible fix since the decision was made to totally change the autonomous code.
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
Closed Thread


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
our own allternative code for the cmu camera Gili Programming 16 17-02-2006 00:16
Robot songs Alex Burman Chit-Chat 19 24-01-2006 08:07
For anyone who doesn't get the camera code..... Jake M Programming 8 16-01-2006 18:56
Is allowing a practice robot good for FIRST? Matt Adams General Forum 38 19-01-2005 11:35
about how Drive Train push the robot... shouldn't the force accelerate the robot? Ken Leung Technical Discussion 12 26-11-2001 09:39


All times are GMT -5. The time now is 10:33.

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