Go to Post Reffing a FIRST event is unlike being an ump or a ref at any other event. Where else is a game invented each year and over 1000 teams play this game within 3 months of its birth? - Andy Baker [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 14-01-2006, 11:50
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

After downloading the code to the robot controller and the terminal window pops up, nothing happens in it. Why is this?
  #17   Spotlight this post!  
Unread 14-01-2006, 13:25
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: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by railerobotics
After downloading the code to the robot controller and the terminal window pops up, nothing happens in it. Why is this?
If you downloaded the code a few days ago, the code was messed-up for a while.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #18   Spotlight this post!  
Unread 14-01-2006, 14:55
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by Kevin Watson
If you downloaded the code a few days ago, the code was messed-up for a while.

-Kevin
We've tried that and it still didn't work.
  #19   Spotlight this post!  
Unread 14-01-2006, 15:12
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: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by railerobotics
We've tried that and it still didn't work.
Rebuild the code with debugging messages on (see camera.h) and post the output (if any) here.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #20   Spotlight this post!  
Unread 14-01-2006, 15:32
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

Here is the debug.

Camera: Initialized abnormally with code 131
Camera: Initialization state = 1
Camera: No EEPROM configuration data found; using default parameters
Camera: Initialization state = 2
Camera: Initializatoin state =3

This continues over and over again.
  #21   Spotlight this post!  
Unread 14-01-2006, 15: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: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by railerobotics
Here is the debug.

Camera: Initialized abnormally with code 131
Camera: Initialization state = 1
Camera: No EEPROM configuration data found; using default parameters
Camera: Initialization state = 2
Camera: Initializatoin state =3

This continues over and over again.
Hmmm... You're camera is hanging on initialization state 3. Open camera.h and look for this line: "#define MAX_ACK_LOOP_COUNT 10" and change the 10 to 100 and let me know what happens when you re-run the code. This gives the camera more time to acknowledge the command before the initialization state machine gives up and starts over.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #22   Spotlight this post!  
Unread 14-01-2006, 16:03
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by Kevin Watson
Hmmm... You're camera is hanging on initialization state 3. Open camera.h and look for this line: "#define MAX_ACK_LOOP_COUNT 10" and change the 10 to 100 and let me know what happens when you re-run the code. This gives the camera more time to acknowledge the command before the initialization state machine gives up and starts over.

-Kevin
We did that and it told us exactly the same thing.
  #23   Spotlight this post!  
Unread 14-01-2006, 16:19
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: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by railerobotics
We did that and it told us exactly the same thing.
You've got power to the camera per the instructions? You've hooked-up the serial cable and TTL-RS232 board per the instructions? Have you tried the camera with the LabVIEW code? What does line 450 of serial_ports.c say?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #24   Spotlight this post!  
Unread 14-01-2006, 16:32
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

Yes we have power and have the ttl hooked up and the camera does work with labview and is calibrated. I have edited the code and changed line 450 of the serial port code to SPBRG2 = BAUD_115200
  #25   Spotlight this post!  
Unread 14-01-2006, 16:47
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: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by railerobotics
Yes we have power and have the ttl hooked up and the camera does work with labview and is calibrated. I have edited the code and changed line 450 of the serial port code to SPBRG2 = BAUD_115200
Well, I don't know what to tell you. The debugging information indicates that your camera isn't communicating with the RC. Grasping at straws, try using the programming port of the RC to communicate with the camera. You'll need to modify the first option of camera.h to use the other serial port and use a male to male null modem serial cable (pin 3 -> pin 2, pin 2 -> pin 3, pin 5 -> pin 5) between the RC and camera.

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #26   Spotlight this post!  
Unread 14-01-2006, 17:22
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

I really appreciate you taking time to help. I'll have to try that thing with the modem cable on monday if I can get a hold of one. If not, I have no idea what to do next.
  #27   Spotlight this post!  
Unread 15-01-2006, 03:16
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: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by railerobotics
I really appreciate you taking time to help. I'll have to try that thing with the modem cable on monday if I can get a hold of one. If not, I have no idea what to do next.
Can you try the software mentioned here and report back with the results?

-Kevin
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
  #28   Spotlight this post!  
Unread 15-01-2006, 11:46
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,387
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Can't find CMUCam2 demo.llb

One thing I have seen that causes the camera to hang, though I didn't notice if it is at STATE 3, is having BOTH the PWM/TTL connected to the RC AND the serial cable connected to the PC from the DB-9 on the camera. As I recall from last year, the camera can not run both simultaneously. And, yes, I know this from personal experience. It was definitely one of those "Bill, you doofus" moments.

This is what I observed the camera and servos do when it was hooked up incorrectly. Camera powers on correctly, RC boots normally, servos drive to what appears to be 127 or center position, and absolutely nothing shows up on the terminal window. When sending a "c" or "t" command to the port, a "NAK" will be returned sometimes.
I hope this helps out someone.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
  #29   Spotlight this post!  
Unread 15-01-2006, 11:52
railerobotics's Avatar
railerobotics railerobotics is offline
Registered User
FRC #0935
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 190
railerobotics will become famous soon enough
Re: Can't find CMUCam2 demo.llb

Quote:
Originally Posted by Kevin Watson
Can you try the software mentioned here and report back with the results?

-Kevin
We will try that and report back on monday.
  #30   Spotlight this post!  
Unread 15-01-2006, 13:12
N3OW N3OW is offline
Registered User
FRC #0869
Team Role: Engineer
 
Join Date: Jan 2006
Location: NJ
Posts: 4
N3OW is an unknown quantity at this point
Post Re: Can't find CMUCam2 demo.llb

We have the Lab View code and it is working somewhat.
We have an issue with the pan going the wrong way from the target.
We had a issue with the image being upside down so we rotated the camera and that fixed that problem bur the pan goes opposite of the target any ideas as to why?
We are planning on using the Easy C programming, and lab view has the ability to export the configuration file for Easy C.
So if any one has any ideas how to correct the panning issues that would be great.
Thank you
Jay
n3ow11@gmail.com.
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
Example LabVIEW Apps - Dashboard, CMUcam2 and Motors Russ Beavis National Instruments LabVIEW and Data Acquisition 9 21-01-2007 17:19
CMUcam2 disclaimer Cody Carey General Forum 4 12-01-2006 01:19
CMUcam2 interfacing Kram Programming 2 27-05-2005 07:17
CMUCam2 Camera Code - Are important parts commented out? Mr. Lim Programming 4 14-01-2005 12:11
3dmax - setting a display option that I can't find DanL 3D Animation and Competition 5 05-01-2003 12:42


All times are GMT -5. The time now is 13:58.

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