![]() |
Urgent help needed : Camera locks on to no apparent target! ?!?!
I'm thinking this is some wierd serial port bug or something... but basically the "red" locked light is going on the camera stops searching even when nowhere near the target, even with my hand over the lens...
this doesn't happen all the time but intermittently |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
Quote:
I have the same problem. Let me know if you find the solution. This mostly happens if for some reason the Robot Controller does not start the camera functions or initializes it. |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
By any chance are you two using custom code (not Kevin's code)?
If so, I discussed something similar here: http://www.chiefdelphi.com/forums/sh...threadid=44281 |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
no it's all kevins
|
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
This has been discussed elsewhere. You can search and find stuff on it. But in tracking.c it checks if there is a light or not to scan because for some weird reason it gets x and y values even when the light is not in front of it. To correct that change the line if(T_Packet_Data.my != 0) to if(P_Packet_Data.confidence != 0).
|
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
Quote:
Since the first post said the problem persists if a hand is in front of the camera then I do not believe that is the problem they are having. When I leave my hand in front of the camera for 3-5 seconds the search routing starts up again. |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
Quote:
I am using Kevin's frc_camera_s, as in the no bells and whistles. This sometimes happens even using the default hex file from Kevin. |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
Quote:
-Kevin |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
We are having the same problem, except we dont have it on autonomous mode. We just try getting the camera to track during normal run and the camera has the red light on. Without it moving at all. Im gonna try that change in the code and see how it works.
EDIT: Okay I changed it and this is what I get when I try to compile it. C:\frc_camera2\frc_camera\tracking.c:97:Error [1105] symbol 'P_Packet_Data' has not been defined C:\frc_camera2\frc_camera\tracking.c:97:Error [1151] struct or union object designator expected |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
Quote:
-Kevin |
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
I'll see if i can post the code tomorrow,
|
Re: Urgent help needed : Camera locks on to no apparent target! ?!?!
Quote:
1. Low Backup Battery (happens every hour or so!) 3. Fluorescent lighting (very tricky due to the moving particles in the rods) 4. A reflection 5. Low main battery 6. The robot was reset with the button or was too fast 7. Loose wire or a wire plugged in backwards (this was caused a tragedy on ship day when we were practicing driving) 8. Confidence value too low 9. Programming error (luckily we haven't had this yet) 10. A random error that seems to fix itself after some tinkering and resetting (least common because that would be too easy, but it happens) If you have gone through this list and changed the line in your code that the other posters are suggesting, and it still tracks ghosts, then it is over my head! |
| All times are GMT -5. The time now is 22:05. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi