|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Come to think of it, we had "intermittent" camera initialization problems from day one. Most of the time we assumed it was from a low backup battery so we were constantly swapping those in and out. Camera initialization always failed for autonomous mode when the competition port was connected. We struggled a long time with assuming we were not starting up the robot the same way every time. It was not until Friday night at the regional when we were finally able to consistently reproduce the problem in the pits. That was when we decided to try a non-static initializer.
And I no longer have access to the robot to write a test to prove the static initialization conditions. The static initializater for camera initialization is in Kevin's bells and whistles camera code. Last edited by Keith Watson : 05-03-2006 at 16:08. Reason: added two more notes |
|
#2
|
||||
|
||||
|
Re: Camera does not search in autonomous mode after reset
Quote:
Quote:
Oy, amazing how repeated testing of a bot at home can show things to be surprising robust, but fail completely at competition like clockwork... |
|
#3
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
It seems that the problem can manifest itself as a messed up state machine - where there is the large switch() statement with CASE_ONE through CASE_WHATEVER, the state becomes set to zero accidentally so it falls through every time and does nothing.
|
|
#4
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
|
|
#5
|
||||
|
||||
|
Re: Camera does not search in autonomous mode after reset
Quote:
|
|
#6
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
|
|
#7
|
||||
|
||||
|
Re: Camera does not search in autonomous mode after reset
Quote:
. |
|
#8
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
all of the other lights on the OI. We will label it the "totally screwed" light. It is best to know this condition as early as possible. Sounds like the default action for the switch statement to me... Last edited by eugenebrooks : 06-03-2006 at 23:14. |
|
#9
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
For the record, I was talking specifically about the camera communications state machine - when I inserted a default to catch the improper 'zero' state, it printed out errors galore.
|
|
#10
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
Congratulations on 2nd place. Your alliance buddy Corvalis is one of our neighbors. |
|
#11
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
For all the high school programmers watching out there, creating robust software systems is an important consideration in software design, even in a resource limited machine. I have programmed on much smaller systems than the IFI. Just because you think certain conditions should not happen does not mean that they never will. Quote:
I will persue it until I can track down the error we observed. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How should we call camera tracking functions during autonomous mode? | SHerpich | Programming | 1 | 15-02-2006 18:33 |
| camera auto mode pwm contention? | AL_E | Programming | 4 | 24-01-2006 22:10 |
| a simple autonomous mode question | chippermonky | Programming | 3 | 18-02-2005 01:54 |
| autonomous mode problem on field | Chris_C | Programming | 17 | 26-03-2003 19:11 |