|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
We would completely unplug our batteries also. We could reproduce the problems in the pits by setting our OI to autonomous. During the matches today the camera did initialize so resetting the variable I mentioned does work.
|
|
#2
|
||||
|
||||
|
Re: Camera does not search in autonomous mode after reset
Quote:
You know that section in the User_Autonomous_Code function, right before the "while (autonomous_mode)" loop (and right after all of the PWM values are reset)? Our team had been experiencing problems with that, and so (in my hacking nature...) I had put the Initialize_Camera function in that section. I don't know why, but it helped, and now the camera always initializes when Autonomous mode starts (or is invoked). also, while you are executing the Autonomous loop, are you sure you are calling the function "Camera_Handler()"? Last edited by Uberbots : 05-03-2006 at 13:01. |
|
#3
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
Code:
tracking_initialized = 0; Quote:
The behavior I described as if the static initializers are not being called under certain conditions is also happening in the recent thread The 8.2 (or 8.3) Battery Voltage Bug. |
|
#4
|
|||
|
|||
|
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 |
|
#5
|
||||
|
||||
|
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... |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
|
|
#8
|
||||
|
||||
|
Re: Camera does not search in autonomous mode after reset
Quote:
|
|
#9
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
|
|
#10
|
||||
|
||||
|
Re: Camera does not search in autonomous mode after reset
Quote:
. |
|
#11
|
|||
|
|||
|
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. |
|
#12
|
|||
|
|||
|
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.
|
|
#13
|
|||
|
|||
|
Re: Camera does not search in autonomous mode after reset
Quote:
Congratulations on 2nd place. Your alliance buddy Corvalis is one of our neighbors. |
|
#14
|
|||
|
|||
|
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 |