|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||||
|
|||||
|
CMUCAM2 help needed
i need to know in mplab, if i see 2 ligts or 1 light.
therfore, i need to have the size of the light that the camers has, if its too high, i know it is 2 lights. how can i get an input of light size to mplab? thanks, a nooby programmer. |
|
#2
|
|||||
|
|||||
|
Re: CMUCAM2 help needed
It depends on the code you are using, but I know in EasyC last year the camera saw two lights as one very large light, and you needed a maximum light size to tell the robot that those lights are actually two.
I can't remember exactly what the maximum light size was though, sorry. |
|
#3
|
|||||
|
|||||
|
Re: CMUCAM2 help needed
Quote:
Does anyone know if they are T_Packet_Data.x1 and T_Packet_Data.x2? |
|
#4
|
||||
|
||||
|
Re: CMUCAM2 help needed
All the data that the camera returns get stored in this structure from camera.h
Code:
// camera t packet data structure
typedef struct
{
unsigned char mx;
unsigned char my;
unsigned char x1;
unsigned char y1;
unsigned char x2;
unsigned char y2;
unsigned char pixels;
unsigned char confidence;
} T_Packet_Data_Type;
|
|
#5
|
|||||
|
|||||
|
Re: CMUCAM2 help needed
can you please tell me what the other valuse meen?
|
|
#6
|
||||
|
||||
|
Re: CMUCAM2 help needed
Look in 'camera.h' around line 140, it has explanations of what the variables mean.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HELP-URGENT PROGRAMMING HELP NEEDED | Rohith Surampudi | Lego Mindstorm Discussion | 1 | 24-03-2006 23:05 |
| MySQL help needed | Greg Marra | Website Design/Showcase | 14 | 25-06-2005 12:43 |
| CMUCam2 Help! | dtknowles | Programming | 14 | 26-01-2005 09:34 |
| Help needed.... | Pin Man | General Forum | 9 | 02-06-2003 20:40 |