Go to Post If only CD had a "like" button. - BrendanB [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 20-01-2006, 00:54
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CMUcam default code not responding

Quote:
Originally Posted by jaustin
Yes, it worked fine with LabView using the DB9. I have all the calibration numbers for tracking an orange traffic cone to get us started (our green light is not assembled yet!). I guess that would narrow it down to the camera's 3 pin RS232 port? That does not seem very likely. I'll keep playing...
You might consider just connecting it to the programming port. If you do, you'll need to switch the port in camera.h to point to serial port one.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #17   Spotlight this post!  
Unread 20-01-2006, 11:26
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam default code

Quote:
Originally Posted by Kevin Watson
If you're using a USB to serial converter, try to find a PC with a real serial port and try it again.

-Kevin

I am using a Compaq Armada 7400 with a serial port. The LEDs are fflashing when I attempt to use the code, after the .hex download is complete. Thanks for the suggestion though.
  #18   Spotlight this post!  
Unread 20-01-2006, 12:09
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CMUcam default code

Quote:
Originally Posted by Ryan O
I am using a Compaq Armada 7400 with a serial port. The LEDs are fflashing when I attempt to use the code, after the .hex download is complete. Thanks for the suggestion though.
You're using a 2006 controller? If so, the code is getting corrupted somehow and you should contact IFI for help diagnosing the problem. If you're using an earlier controller, you need to re-compile the code using the included instructions. Come back here if the above doesn't help out.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #19   Spotlight this post!  
Unread 22-01-2006, 19:13
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam default code

Quote:
Originally Posted by Kevin Watson
You're using a 2006 controller? If so, the code is getting corrupted somehow and you should contact IFI for help diagnosing the problem. If you're using an earlier controller, you need to re-compile the code using the included instructions. Come back here if the above doesn't help out.

-Kevin

Thanks, but I just ave one question. Where are the recompile instructions? I am using last year's bot as a test platform. Are they in the work or another of the .pdf's from FIRST? I did a scan through the workbook, but I may have missed it. Thanks alot, you guys are very helpful. Good luck with your bots this year.
  #20   Spotlight this post!  
Unread 22-01-2006, 19:17
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Cañada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Cañada, California
Posts: 1,335
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
Re: CMUcam default code

Quote:
Originally Posted by Ryan O
Thanks, but I just ave one question. Where are the recompile instructions? I am using last year's bot as a test platform. Are they in the work or another of the .pdf's from FIRST? I did a scan through the workbook, but I may have missed it. Thanks alot, you guys are very helpful. Good luck with your bots this year.
"Using_Last_Years_FRC.txt" included with my code as well as IFI's.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #21   Spotlight this post!  
Unread 22-01-2006, 21:14
heydowns's Avatar
heydowns heydowns is offline
Registered User
AKA: Jeff Downs
FRC #1511 (Rolling Thunder)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Ra-Cha-Cha
Posts: 142
heydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond reputeheydowns has a reputation beyond repute
Re: CMUcam default code not responding

Quote:
Originally Posted by jaustin
Hi Kevin,
We are having the same issue (failing in State 3) - something probably amiss with our camera to RC communication. The readme file for the diagnostic files says it's only for the full sized controller. We are still messing with the EDU until we get our full system running. Any tweaks I can do to get the diagnositcs to work with the EDU?
We use the camera with the Edu... We got the same error initially. We found that the baud rate was set wrong. If you are using Serial Port #2 (the TTL header is serial port #2), you need to change Kevin's serial driver to use a baud rate that matches your camera (the default is 115200).

Another thing to check - make sure your RS232<>TTL converter board is fully connected. The Edu has only 3 pins on the TTL header. The missing fourth one (as compared to full size RC) is the power pin (+5V). We took the end of a spare pwm cable and connected just one pin on the +5V pin of Digital In/Out #1, then ran that into the TTL<>RS232 board.
  #22   Spotlight this post!  
Unread 22-01-2006, 21:31
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
Re: CMUcam default code not responding

Here is what I did to allow compatibility between years, and between IDEs. I have a "core" directory, a "modules" directory, a "2005" directory and a "visual studio" directory. I put all c/h files I personally make (or get from Kevin's website) into the modules directory, and I put all of the files supplied by IFI's 2006 default code into the "core" directory. I copied the 2006 default code's workspace files to the "2005" directory, followed the instructions to ensure compatibility with '05 controllers, and then included all my modules from the "modules" directory, and the relevant IFI code from the "core" directory into that project. I didn't trust the pic's being #define'd, so I edited the project settings in the "2005" directory to include the definition of VERSION_2005_CODE (-D_VERSION_2005_CODE), and then I test for the presence of this macro where relevant. For example, in Kevin's EEPROM code:
Code:
// Need to include a different file in the event of a compilation for the 
// '04-'05 controller.
#ifdef VERSION_2005_CODE			
	#include "ifi_picdefs.h"
#else
	#include <p18f8722.h>
#endif

#include "rkw_eeprom.h"
So now, for me, switching between the two platforms is a matter of opening the right workspace, and rebuilding all files.

I also created a visual studio solution, and stored it to the "Visual Studio" directory. I include all the c/h files into this solution, and do all my coding there. When its time to compile, I alt+tab to the MPLab editor (it senses that the files have changed at this point), and pretend as though I had been coding there all along.

c:\2006 Robot Code\
c:\2006 Robot Code\modules\
c:\2006 Robot Code\2005 Workspace\
c:\2006 Robot Code\Visual Studio\
c:\2006 Robot Code\documentation\

That might help you in the long run, though it doesnt solve your current problem.
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003
  #23   Spotlight this post!  
Unread 23-01-2006, 07:45
tribotec_ca88's Avatar
tribotec_ca88 tribotec_ca88 is offline
FIRST-a-holic
AKA: Camila Fitzgibbon
FRC #1382 (Tribotec Team)
Team Role: Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: São José dos Campos, Brazil
Posts: 194
tribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nice
Send a message via ICQ to tribotec_ca88 Send a message via MSN to tribotec_ca88 Send a message via Yahoo to tribotec_ca88
Talking Re: CMUcam default code not responding

Quote:
Originally Posted by Kyveck
I have spent quite a bit of time trying to get this to work, and I suspect some kind of configuration problem. I'm hoping that if I list everything, someone might be able to see what's wrong.

frc_camera_s, using compiled .hex that was in the download
CMUcam2 connected via TTL port to RC
2006 RC tethered to 2006 OI
tilt/pan servos connected to RC pwm1,2
RC pwm to CMUcam2 power
jumpers on pan reverse, oscillator connect, internal power to servos
DB-9 serial from RC program port to laptop via USB to Serial converter
12 volt and 7.2 volt batteries fully charged

The camera shows a green light, and all of RC lights are green like normal. The camera holds its default position, and does not respond to any light. Nothing comes up over the terminal, although I expected to see "Scanning...". With the camera configured stand-alone (DB-9 to USB to laptop, servos plugged directly in to camera, power still supplied by RC) I was able to use LabView and the CMUcam2 demo program to calibrate the camera well. It tracked as I believe it was supposed to without any problems.

Any assistance would be appreciated. Thanks.
Dublin Robotics, Team 1014 (with the Bad Robot t-shirts)
Unfortunately we seem to be having the same problem...we don't get any errors after compiling the program, and the results shown on MPLAB clearly state "BUILD SUCCEEDED" ... no problems loading the .hex file from IFI loader to the controller, however, the COM Terminal window is BLANK! Nothing happens or shows up on the window... any theories of what may be going on?
Any help at all would be greatly appreciated...
__________________
1382 Tribotec Team - Brazil
-----------------------------------------------
2005 NJ Regional GM Industrial Design Award
2005 NJ Regional Website Excellence Award
2004 NJ Regional Semifinalists
-----------------------------------------------
  #24   Spotlight this post!  
Unread 23-01-2006, 08:26
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam default code

Quote:
Originally Posted by Kevin Watson
"Using_Last_Years_FRC.txt" included with my code as well as IFI's.

-Kevin

Thanks alot, this should solve the problem. Good luck this year.
  #25   Spotlight this post!  
Unread 23-01-2006, 12:49
tribotec_ca88's Avatar
tribotec_ca88 tribotec_ca88 is offline
FIRST-a-holic
AKA: Camila Fitzgibbon
FRC #1382 (Tribotec Team)
Team Role: Student
 
Join Date: Jan 2004
Rookie Year: 2004
Location: São José dos Campos, Brazil
Posts: 194
tribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nicetribotec_ca88 is just really nice
Send a message via ICQ to tribotec_ca88 Send a message via MSN to tribotec_ca88 Send a message via Yahoo to tribotec_ca88
Re: CMUcam default code not responding

Ah! yay, we got it up and running...
__________________
1382 Tribotec Team - Brazil
-----------------------------------------------
2005 NJ Regional GM Industrial Design Award
2005 NJ Regional Website Excellence Award
2004 NJ Regional Semifinalists
-----------------------------------------------
  #26   Spotlight this post!  
Unread 23-01-2006, 14:18
Validius's Avatar
Validius Validius is offline
There is a shadow following me.....
AKA: Mark Ratering
FRC #1549 (Washtenuts)
Team Role: College Student
 
Join Date: Feb 2005
Rookie Year: 2005
Location: South Lyon
Posts: 159
Validius will become famous soon enoughValidius will become famous soon enough
Send a message via AIM to Validius
Re: CMUcam default code not responding

Quote:
Originally Posted by Kyveck
I ran the serial port diagnostic tests. In loopback mode, terminal input was not echoed. When connected to the camera, there was no responce. I am confident that I configured everything per the ReadMe file.

When I ran debug, the following was printed to the terminal:
Camera: Initialized abnormally with code 131
Camera: Initialization state = 1
Camera: Initialization state = 2
Camera: Initialization state = 3

I hope to test the TTL to RS232 board soon using the ifi instructions.
Thank you for your help.
Kyle W
Has anyone responded to this? I'm getting the same error code.
__________________
When a sociaty comes to believe that human life is not inherently worth living, it is a slippery slope to the gas chamber. You wind up on a low road that twists past Columbine and leads toward Auschwitz.

-Peggy Noonan
  #27   Spotlight this post!  
Unread 23-01-2006, 19:09
shobuda999 shobuda999 is offline
Registered User
None #1995
 
Join Date: Jan 2005
Rookie Year: 2001
Location: Connecticut
Posts: 7
shobuda999 is an unknown quantity at this point
Re: CMUcam default code not responding

Quote:
Originally Posted by Validius
Has anyone responded to this? I'm getting the same error code.
When this happened to us, it was because we had the DEBUG flag turned on. Try turning it off and see what happens!
  #28   Spotlight this post!  
Unread 23-01-2006, 22:04
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: CMUcam default code not responding

The "code 131" error says that the program did not receive a response from the camera during initialization. It could be a communication problem (try the loopback test, and make sure you don't have the PC still connected to the camera at the same time as the RC), a power problem (make sure you have a freshly charged battery and all the connections are good), or a broken camera (test it with the LabView application).

That's about all I can suggest without looking at how you have things wired up.
  #29   Spotlight this post!  
Unread 25-01-2006, 13:06
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam default code not responding

Ok, so I got the code scanning for the target and giving me angles and such- the only problem is that it gives me the info then keeps searching. Is it supposed to do this? and if not what can I do to get it the stop when it finds it? Your help so far has made this much easier. Thanks alot!
  #30   Spotlight this post!  
Unread 26-01-2006, 16:25
Ryan O's Avatar
Ryan O Ryan O is offline
FRC Eclipse Plug-in Developer
no team (FRC Eclipse)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2005
Location: Plaistow
Posts: 111
Ryan O is an unknown quantity at this point
Send a message via AIM to Ryan O
Re: CMUcam default code not responding

Ok, I have a more specific idea of the problem now: the camera is aquiring during the stage where it is moving to restart search, then doesn't do a regular scan at that height. Any suggestions?
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Out of the Box Camera Code russell Programming 9 21-10-2009 05:28
Best Way To Insert Autonomous Code Into Default then load help.? :-)? gemccnp Programming 2 05-02-2005 18:58
default code vs. 2.4 stephenthe1 Programming 2 05-02-2005 18:02
Team THRUST - Kevin's Code and Camera Code Combine Chris_Elston Programming 3 31-01-2005 22:28
heres the code. y this not working omega Programming 16 31-03-2004 15:18


All times are GMT -5. The time now is 11:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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