![]() |
Re: 2006 CMUcam2 Code
k thanks time to search,
Cuog |
Re: 2006 CMUcam2 Code
My team is having some problems using the camera code. When we used the code that came with the controller, we were able to get the LEDs to light up for y movement on the joystick, as well as the trigger and thumb button. When we loaded on the camera code, though, none of those did anything. We loaded on the default code provided at IFI's website, and that fixed things, but we can't use the camera with just that code. Any idea what we're doing wrong? The user_routines.c files look the same, so I don't understand why the joystick wouldn't work.
|
Re: 2006 CMUcam2 Code
in the method: Proccess_Data_From_Master_uP(), make a call to Default_Routine, then in Default_Routine comment out the pwm assignment for pwm01 and 02 and you're good to go, i spent all day trying to fix this and hit my head against the wall when i got it.
|
Re: 2006 CMUcam2 Code
Quote:
|
Re: 2006 CMUcam2 Code
Quote:
|
Re: 2006 CMUcam2 Code
Quote:
Code:
// By default, PWM output one is used for the pan servo. |
Re: 2006 CMUcam2 Code
I don't know if this has been answered in one of the above posts or somewhere, but does the camera code (the one for MPLab) interfere with other code that we programmers add in? I can't get any of my personal code, including printfs, to work even though all the camera code works perfectly fine, including printfs. Is there something I'm supposed to edit before I can edit the default code and have it work?
|
Re: 2006 CMUcam2 Code
The call to Default_Routine() is commented out in the camera code. If that's where you're putting your own programming, you now know why it doesn't seem to be doing anything. :)
Uncomment it and your code should run. |
Re: 2006 CMUcam2 Code
Quote:
Thanks, I hope I'm not repeating someone. |
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
Re: 2006 CMUcam2 Code
Quote:
Code:
MPLINK 3.94, LinkerCode:
MPLINK 3.94, LinkerI HATE MP BLOB |
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
Re: 2006 CMUcam2 Code
Quote:
What is the .map file and where can I find it? Thanks, Paul |
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
Re: 2006 CMUcam2 Code
Code:
MPLINK 3.94, LinkerThanks |
| All times are GMT -5. The time now is 11:56. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi