|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
|
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 |