|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
Quote:
|
|
#17
|
||||
|
||||
|
Re: What is T_Packet_Data.my ??
Quote:
-Kevin |
|
#18
|
|||||
|
|||||
|
Re: What is T_Packet_Data.my ??
Quote:
Quote:
What Keith reported corresponds very closely to my experience, although I didn't attempt controlled experiments. I just noticed that sometimes the camera locked on to a spot well away from the target, and noted that the confidence was zero (or so.) |
|
#19
|
||||
|
||||
|
Re: What is T_Packet_Data.my ??
Quote:
-Kevin |
|
#20
|
||||
|
||||
|
Re: What is T_Packet_Data.my ??
Quote:
-Kevin |
|
#21
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
Quote:
|
|
#22
|
||||
|
||||
|
Re: What is T_Packet_Data.my ??
Quote:
Can you do me a favor? Can you grab this code and test it under the conditions that caused the camera to send the low confidence t-packets? These are the changes I've made so far: 1) All changes to servo position are now done through two functions, which will make it easier for teams to use the CMUcam2 servo outputs if they desire. 2) Fixed bug in search initialization code where temp_pan_servo was initialized to zero instead of Tracking_Config_Data.Pan_Min_PWM. 3) Altered tracking algorithm to use the t-packet confidence value to determine whether the code should track or search. This value can also the changed on-the-fly from the tracking menu. 4) Added Get_Tracking_State() function, which can be used to determine if the camera is on target. New code in Process_Data_From_Master_uP( ) uses this function to turn on the switch3 LED on the operator interface when the camera is on target. -Kevin |
|
#23
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
Kevin,
I have arranged to get some camera time to test your changes. It will be on Saturday morning before the bot goes to a scrimmage. It will be Saturday evening before I can report back. Keith |
|
#24
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
The non-zero my's probably come from stray pixels that the camera finds (like if the room is lit w/ flourescent lights and there is green or yellow paper on the walls), this doesn't make much of a difference most of the time, but it's annoying that it resets the search pattern, which results in the camera getting stuck going in circles and never finding the target (in our debugging we have gotten around this by covering its field of view until it was facing the target, we should probably make it not reset the search pattern ourselves, but hasn't annoyed us enough to do so yet)
EDIT: i would also try changing Code:
if(new_search == 1) Code:
if(FALSE) EDIT 2: it's also be possible to not set new_search to 1 until after ~.5 seconds of seeing the target, since it will usually lose the stray pixels by then, but I don't see the benefit of reseting the search pattern. Last edited by kevlarman : 17-02-2006 at 11:57. |
|
#25
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
Quote:
|
|
#26
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
the confidence can drop sharply if there is a reflection of the target somewhere (which is likely considering all the reflective surfaces on the field), so finding that value that won't pick up the reflections but will pick up the real thing may be difficult.
|
|
#27
|
|||
|
|||
|
Re: What is T_Packet_Data.my ??
Quote:
I have sent email with feedback. It looks good. The feedback is just a couple of minor things in the comments. Keith |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|