Go to Post I openly admitted to using IE at robotics last year and recieved a major lashing for such blasphemy. Then I downloaded Chrome. - jwallace15 [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
  #1   Spotlight this post!  
Unread 24-06-2006, 03:10
987HighRoller's Avatar
987HighRoller 987HighRoller is offline
Vegas....Baby
AKA: Alex Sambvani
FRC #0987 (High Rollers)
Team Role: College Student
 
Join Date: May 2006
Rookie Year: 2005
Location: Las Vegas, Nevada
Posts: 80
987HighRoller has a spectacular aura about987HighRoller has a spectacular aura about
Question Programming The CMUcam for the Vex controller

Hi,

I am trying to make the camera code on a vex controller. I've integrated Kevins code into the default Vex code from IFI and it doesn't seem to have any errors with it (just for the heck of it I tried to run Kevin's code for FRC, unfortunately it didn't work). I have connected the camera's serial port using a male to male serial connection to the programming cable for the Vex controller. One problem with this is that I can't debug the code using the output from the IFI Loader. I'm pretty sure that the camera's serial port is right in the code. The only problem is, IT DOESN'T WORK The Vex controller doesn't seem to be getting any data from the camera, and I have no clue why. All I did to make the code work for the Vex was use the Vex default code and add the files from Kevin's 2006 CMUcam2 code one file at a time. I'm pretty sure I've included all the necessary functions as well throughout the code. Does anybody have any ideas as to why this isn't working? Is there a problem with the way I'm using the FRC code for the Vex. Also, I'm using the camera that came in the 2005 KOP, does this matter?

Thanks
__________________
Team 987 - The High Rollers - Las Vegas, Nevada
2007 Las Vegas Regional Finalists
2007 Newton Champions

2007 Championship Winners! Thanks to 190 and 177

2008 IRI CHAMPS with 67 and 330
  #2   Spotlight this post!  
Unread 24-06-2006, 10:47
bear24rw's Avatar
bear24rw bear24rw is offline
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
 
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
bear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to beholdbear24rw is a splendid one to behold
Send a message via AIM to bear24rw
Re: Programming The CMUcam for the Vex controller

If you are using the steamlined version make sure you including, camera.c, camera.h, serial_ports.h, serial_ports.c, tracking.h, tracking.c...

I have never used Vex with the camera but you might want to try changing the serial port that the camera is on... (camera.h)
Code:
// If your camera's serial port is attached to the the robot controller's
// programming serial port, uncomment the "#define CAMERA_SERIAL_PORT_1" 
// line. Otherwise, if your camera is attached to the TTL serial port, 
// uncomment the "#define CAMERA_SERIAL_PORT_2" line.
// #define CAMERA_SERIAL_PORT_1
#define CAMERA_SERIAL_PORT_2
Again, I have never used Vex with the camera before so there might be other problems that I dont know about...
  #3   Spotlight this post!  
Unread 24-06-2006, 13:20
Donut Donut is offline
The Arizona Mentor
AKA: Andrew
FRC #2662 (RoboKrew)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Goodyear, AZ
Posts: 1,272
Donut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond reputeDonut has a reputation beyond repute
Re: Programming The CMUcam for the Vex controller

I doubt this is the problem, but could the fact the Vex RC has a different timing for the main loop (18ms instead of 26ms) affect it at all?

Also, you may want to look into using the TX and RX ports for your camera instead of the programming port so you can still read outputs from the robot.
  #4   Spotlight this post!  
Unread 24-06-2006, 15:27
987HighRoller's Avatar
987HighRoller 987HighRoller is offline
Vegas....Baby
AKA: Alex Sambvani
FRC #0987 (High Rollers)
Team Role: College Student
 
Join Date: May 2006
Rookie Year: 2005
Location: Las Vegas, Nevada
Posts: 80
987HighRoller has a spectacular aura about987HighRoller has a spectacular aura about
Re: Programming The CMUcam for the Vex controller

I think I might have to change the baud rate and try and use the sample values that are in serial_ports.h. And yes, I've switched the camera's serial ports in the code several times, and I'm pretty sure that serial port one is the right one.
__________________
Team 987 - The High Rollers - Las Vegas, Nevada
2007 Las Vegas Regional Finalists
2007 Newton Champions

2007 Championship Winners! Thanks to 190 and 177

2008 IRI CHAMPS with 67 and 330
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
Attaching the CMUcam to the Vex controller 987HighRoller FIRST Tech Challenge 17 23-10-2007 17:10
IR on the Vex controller? jgarbers FIRST Tech Challenge 0 18-04-2006 14:07
Making the VEX OI (controller) beep? ForgottenSalad FIRST Tech Challenge 2 27-03-2006 08:50
Programming VEX Controller HRobotics Programming 4 21-03-2006 23:25
COM port settings for CMUcam labview testing and programming pwilczynski Programming 1 15-01-2006 15:09


All times are GMT -5. The time now is 16:17.

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