![]() |
Camera & Default Code
Hi,
The zip file downloaded (Camera streamlined version from kevin.org/frc) contains everything, the user_routines.c and all that. should i use this as the default code for 2007 and add my autonomous mode and joystick controls and all that to that files? or is there a way to add the camera thingies to the 2007 Default code? Plus, If I Remember correclty, the readme.txt file says that serial_port.c or something like this, also available at kevin.org/frc need to be installed, I downloaded that file, and again, it contains all the user_routines.c and stuff, what is going on? can someone explain to me how to mix up all the files so i can get the camera working with my default code? Thanks, Carmel |
Re: Camera & Default Code
Yes, you can use that as your default code very easily. You do not need to add the serial port code to it because it is already there. The readme is there so that people who want to copy over only the camera related portions of the code know what needs to be included to get it to work.
|
Re: Camera & Default Code
So basically,
I open the camera.mpw and work on the user_routines.c and stuff as if it was my default code? Thanks Carmel |
Re: Camera & Default Code
You can definitely do that.
|
Re: Camera & Default Code
Quote:
-Kevin |
Re: Camera & Default Code
I will wait,
what zip file? the one for the camera? and then what will i have to do to get working on the complete code (including camera and everything, the code that will be used in the competition)? Thanks, Carmel |
Re: Camera & Default Code
Quote:
-Kevin |
Re: Camera & Default Code
Thanks, that's what i was looking for
Where can i find out when you've updated the file? Thanks, Carmel |
Re: Camera & Default Code
You can find it on Kevin's website.
http://kevin.org/frc/ |
Re: Camera & Default Code
We have managed to get the camera tracking beautifully. Thanks so much Kevin. I have a question though.
We were able to change the PWM's that the servo's use (PWM01/PWM02) to PWM07 and PWM08. Everything still works fine i.e. camera tracks. Our question is, where do we set PWM01/PWM02 so that they are now free for us to use with a joystick (y-axis) vis-a-vis the default non-camera code. Thanks for your help. |
Re: Camera & Default Code
If I understood your question:
in the project downloaded from kevin's site the Default_Routines() function in the user_routines.c is commented uncomment it (where it's being called) and edit it at the bottom of user_routines.c you decide what pwm is for what joystick axis at that file too. If I didn't get your question right, forgive me and ignore the answer Carmel |
Re: Camera & Default Code
Quote:
-Kevin |
Re: Camera & Default Code
Kevin, I remember reading through your Q&A and seeing that. My apologies for not paying better attention. Thanks again for your help.
|
Re: Camera & Default Code
Dear Kevin,
We are using your edu_camera.zip code with our EDU and it's working perfectly. You are awesome! Thanks. Of course, the question comes to my mind, are we missing anything by not using the frc_camera21.zip code? The newest date on the files in the edu zip is 1/22/06 and it looks like you've updated several files since then in the 21 zip. Is the only difference between the camera21 and the edu code just the linker and lib files because of the different PIC? Your time and efforts are greatly appreciated. |
Re: Camera & Default Code
Quote:
-Kevin |
| All times are GMT -5. The time now is 01:28. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi