Go to Post you know you are addicted to first when u crave sprockets for breakfast! - Jones571 [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 20-02-2009, 23:27
KHall KHall is offline
KHall - 2171 Crown Point IN
FRC #2171 (RoboDogs)
Team Role: Mentor
 
Join Date: Mar 2008
Rookie Year: 2008
Location: Crown Point IN
Posts: 67
KHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud ofKHall has much to be proud of
cmucam2 MPLAB on VEX controller ??

Congratulations on surviving another build season!!

During this build season I came across a cmucam2 revA which I believe to be from the 2007 season. Now that build season is over I thought it would be an interesting home project to see if we can get it working on a little VEX controller so we can use it to teach the basics of cameras to our younger students.

That was about a week ago... I've collected a lot of information and software since then including several example programs for Brad Miller's WPILIB and Kevin Watson's cmucam code.

I know the camera works just fine since using the Java applet CMUcamGUI2_fe I can track colors reliably. Further I know that both Brad & Kevin's code sucessfully initializes and starts the camera tracking (from LEDs and Brad's easy to use SetCameraDebugMode(1) function).

But after that the results are completely consistant. The T-type packets appear to be sent but when you do printfs for the tracking variables you always get zeros.

Its interesting that with Kevin's code (at startup) the first output is 'no camera data'. It always happens once at startup, and from then on it just outputs 'Searching...". If you unplug the serial connection, Kevin's code just streams 'no camera data'. That makes me think that the camera is sending the data, but the VEX has something just a little different that causes the data to be 'lost'. ( And I double checked my pointer logic many times. The variables are really empty. )

So after reading and trying everything that I can think of, and must admit I'm stumped. I've been using MPLAB and WPILIB for programming these little VEX machines for quite a while now and it is, generally speaking, rock-solid.

So if you have any suggestions, or know something about the how the VEX CPU might be different, please pass it along. It would sure be nice to make use of this camera with the younger students -- rather than just have this equipment and code sitting on a shelf collecting dust.

Thank-you,
KHall, Mentor
Team 2171
Crown Point RoboDogs

Last edited by KHall : 20-02-2009 at 23:35.
 


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
Programming Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
Question abut CMUCam2 Camera with VEX yara92 Programming 7 22-09-2007 08:19
CMUCAM2 on a Vex Controler Kingofl337 Programming 0 23-01-2007 16:09
Interupts on Vex in MPLab Andrew Schreiber FIRST Tech Challenge 1 24-05-2006 08:32
Vex Easyc vs Mplab Joohoo Programming 17 27-01-2006 08:22


All times are GMT -5. The time now is 20:32.

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