Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programing code (http://www.chiefdelphi.com/forums/showthread.php?t=50385)

teh_pwnerer795 10-12-2006 20:48

Programing code
 
Hey i went to ifirobotics and tried to find the original code... cant seem to find it for 2006.... i basically need the code for the camera... for some reason i keep getting an error w/ stdio.h file .... i think it may be my complier but still not sure...

Tom Bottiglieri 10-12-2006 20:57

Re: Programing code
 
Go to Project>Build Options>Project

Include Path - "C:\mcc18\h"

neilsonster 10-12-2006 22:40

Re: Programing code
 
If you still need the camera code, it's here: http://www.kevin.org/frc/frc_camera.zip (see http://www.kevin.org/frc for other available code)

chris31 11-12-2006 07:01

Re: Programing code
 
Th default code will be on IFI's site, but for the camera and other code you need to look for Kevin Watson's code. You can find his code at http://kevin.org/frc

teh_pwnerer795 11-12-2006 19:46

Re: Programing code
 
Hm... i do have the project set to mcc18.... still getting that error... now that code from http://kevin.org/frc "the bells and whistles"....i have to include every piece of data (user_routines.c) into my own code? if yes just let me noe so i can start...:) i also see that there is a .mcp file in here... do i need to include that as well in the folder that al my code is in??

chris31 11-12-2006 19:57

Re: Programing code
 
Read the readme that Kevin included with his code. It should tell you how to use his code in yours. If I recall all you have to do is make sure you have tracking.c, tracking.h, camera.c, and camera.h. Then make sure you #include the header files in your user_routine and then make sure you call all the camera initilization and tracking methods.

teh_pwnerer795 11-12-2006 20:00

Re: Programing code
 
Quote:

Originally Posted by chris31 (Post 540932)
Read the readme that Kevin included with his code. It should tell you how to use his code in yours. If I recall all you have to do is make sure you have tracking.c, tracking.h, camera.c, and camera.h. Then make sure you #include the header files in your user_routine and then make sure you call all the camera initilization and tracking methods.

ok im somewhat majorly confused..... should i include all of the files found in the zipped file?? or should i only include tracking.c/.h and camera.c/.h? ... really confused im reading the 'read_me' and its telling me to delete this and add this..

teh_pwnerer795 11-12-2006 20:03

Re: Programing code
 
I have found my problems:D:D

www.InnovationFirst.com
10/10/2005
- Added a checksum to the breaker panel packet
- now using <stdio.h>, compiler needs -nw=2066 to suppress warnings (under project->build options->project->MPLAB C18->Use Alternate Settings)
- Note: when using a 'printf' use a '\r' rather than a '\n' with the C18 compiler (v2.4 or later)

This is what has being failing on me:)

teh_pwnerer795 11-12-2006 20:39

Re: Programing code
 
GUYS .. ima cry.. i do not have the 2.4v of C18... i have 2.2v but not 2.4:(:'( so this is probally the reason why i am getting the error....

chris31 12-12-2006 06:59

Re: Programing code
 
Quote:

Originally Posted by teh_pwnerer795 (Post 540958)
GUYS .. ima cry.. i do not have the 2.4v of C18... i have 2.2v but not 2.4:(:'( so this is probally the reason why i am getting the error....

If I recall, v2.2 will not work. Only v2.4 will work.


All times are GMT -5. The time now is 01:25.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi