|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: 2006 CMUcam2 Code
k thanks time to search,
Cuog |
|
#17
|
||||
|
||||
|
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.
|
|
#18
|
|||||
|
|||||
|
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.
|
|
#19
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
|
|
#20
|
|||
|
|||
|
Re: 2006 CMUcam2 Code
Quote:
|
|
#21
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
Code:
// By default, PWM output one is used for the pan servo. // Change it to another value if you'd like to use PWM // output one for another purpose. #define PAN_SERVO pwm01 // By default, PWM output two is used for the tilt servo. // Change it to another value if you'd like to use PWM // output two for another purpose. #define TILT_SERVO pwm02 |
|
#22
|
||||
|
||||
|
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?
|
|
#23
|
|||||
|
|||||
|
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. |
|
#24
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
Thanks, I hope I'm not repeating someone. |
|
#25
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
|
#26
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
Code:
MPLINK 3.94, Linker Copyright (c) 2005 Microchip Technology Inc. Error - could not find definition of symbol 'Breaker_Tripped' in file 'G:\Default Code\user_routines.o'. Errors : 1 Code:
MPLINK 3.94, Linker Copyright (c) 2005 Microchip Technology Inc. Error - section '.udata_user_routines.o' can not fit the section. Section '.udata_user_routines.o' length=0x00000103 Errors : 1 I HATE MP BLOB |
|
#27
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
|
#28
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
What is the .map file and where can I find it? Thanks, Paul |
|
#29
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
|
#30
|
||||
|
||||
|
Re: 2006 CMUcam2 Code
Code:
MPLINK 3.94, Linker
Linker Error Map File - Created Sun Jan 22 18:39:54 2006
*Warning* - This is only a partial map file due to a link time error.
Only sections which were allocated prior to the error are shown below.
CODEPAGES:
Memory Start End Section Address Size(Bytes)
--------- --------- --------- --------- --------- ---------
vectors 0x0000 0x07ff
page 0x0800 0xffff _entry_scn 0x0800 0x0006
InterruptVectorHigh 0x0808 0x0006
InterruptVectorLow 0x0818 0x0006
.cinit 0x081e 0x004a
.code_user_routines.o 0x0868 0x1270
.code_vfprintf.o 0x1ad8 0x0c22
.code_pow.o 0x26fa 0x0b2e
.code_ifi_library.o 0x3228 0x0722
PROG 0x394a 0x06a2
.code_camera.o 0x3fec 0x0634
.code_exp.o 0x4620 0x05c2
.code_log.o 0x4be2 0x04f6
.code_tracking.o 0x50d8 0x0408
UTIL_LIB 0x54e0 0x0396
.code_fchop.o 0x5876 0x028e
.code_ifi_utilities.o 0x5b04 0x01de
.code_serial_ports.o 0x5ce2 0x0188
.code_user_routines_fast.o 0x5e6a 0x015a
.code_ldexp.o 0x5fc4 0x0134
.code_frexp.o 0x60f8 0x0120
.code_UnpkMath.o 0x6218 0x011c
.code_PackMath.o 0x6334 0x011a
idlocs 0x0000 0x0007
config 0x0000 0x000d
devid 0xfffe 0xffff
eedata 0x0000 0x03ff
SHAREBANKS:
DATABANKS:
Memory Start End Section Address Size(Bytes)
--------- --------- --------- --------- --------- ---------
gpr0 0x0060 0x00ff COPY_VAR 0x0080 0x0080
gpr1 0x0100 0x01ff
gpr2 0x0200 0x02ff
gpr3 0x0300 0x03ff
gpr4 0x0400 0x04ff
gpr5 0x0500 0x05ff
gpr6 0x0600 0x06ff
gpr7 0x0700 0x07ff
gpr8 0x0800 0x08ff
gpr9 0x0900 0x09ff
gpr10 0x0a00 0x0aff
gpr11 0x0b00 0x0bff
gpr12 0x0c00 0x0cff
gpr13 0x0d00 0x0dff
gpr14 0x0e00 0x0eff .stack 0x0e00 0x0100
gpr15 0x0f00 0x0f5f
ACCESSBANKS:
Memory Start End Section Address Size(Bytes)
--------- --------- --------- --------- --------- ---------
accessram 0x0000 0x005f
accesssfr 0x0f60 0x0fff SFR_UNBANKED0 0x0f62 0x009e
Thanks |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Out of the Box Camera Code | russell | Programming | 9 | 21-10-2009 05:28 |
| CMUCam2 code (FRC and EDU?) | Amber | Programming | 0 | 15-02-2005 22:23 |
| Team THRUST - Kevin's Code and Camera Code Combine | Chris_Elston | Programming | 3 | 31-01-2005 22:28 |
| CMUCam2 Camera Code - Are important parts commented out? | Mr. Lim | Programming | 4 | 14-01-2005 12:11 |
| heres the code. y this not working | omega | Programming | 16 | 31-03-2004 15:18 |