|
Re: CMUCam, Easy C, and Labview
1.)In easyC PRO Click on the project tab.
2.) Right Click on "C Source Files"
3.) Select Existing .c files
4.) Find the .c file you are looking for
5.) Right Click on "Header Files"
6.) Select Existing .h files
7.) Find the .h file you are looking for
8.) Start calling functions in user code blocks.
In the camera code if you want to drive the servos you may have to
convert pwm01=Value; to SetPWM(1,Value);
Where 1 is the port number and Value is the variable of what the angle should be.
In the Initialize Function call: InitCamera ( 1 ) ; and StartCamera ( ) ;
Any place that polls the camera you need to call CaptureTrackingData ();
You can drag the blocks right into the C code.
Have you tried the 07 demo code we posted that tracks very well.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Last edited by Kingofl337 : 11-01-2007 at 16:42.
|