|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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...
|
|
#2
|
|||
|
|||
|
Re: Programing code
Go to Project>Build Options>Project
Include Path - "C:\mcc18\h" |
|
#3
|
|||||
|
|||||
|
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)
|
|
#4
|
|||
|
|||
|
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
|
|
#5
|
|||
|
|||
|
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?? |
|
#6
|
|||
|
|||
|
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.
|
|
#7
|
|||
|
|||
|
Re: Programing code
Quote:
Last edited by teh_pwnerer795 : 11-12-2006 at 20:12. |
|
#8
|
|||
|
|||
|
Re: Programing code
I have found my problems
![]() ![]() 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 ![]() |
|
#9
|
|||
|
|||
|
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.... |
|
#10
|
|||
|
|||
|
Re: Programing code
If I recall, v2.2 will not work. Only v2.4 will work.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Programing a joystick | Justin_302 | Programming | 2 | 21-03-2005 22:45 |
| Programing | great_one411 | General Forum | 2 | 01-02-2003 17:27 |
| Programing of controller | DLyons | Programming | 0 | 29-11-2002 20:50 |
| Programing help... | archiver | 2000 | 9 | 23-06-2002 22:46 |
| Programing | pfortunejr | Programming | 1 | 08-01-2002 13:18 |