![]() |
2006 CMUcam2 Code
As was mentioned during the kick-off, we have new-and-improved, country fresh CMUcam2 code this year. There are two versions available: The "bells and whistles" version contains interactive menu code that allows you to change, on-the-fly, the camera calibration and tracking parameters and save the configuration to EEPROM. And we also have the "streamlined" no nonsense version for the minimalist crowd. Both versions can be found here: http://kevin.org/frc. If you have questions or spot a bug in the code or documentation, please post it in this forum.
-Kevin |
Re: 2006 CMUcam2 Code
do you use the ifi loader to download the code to the cam via to the frc controller?
|
Re: 2006 CMUcam2 Code
You don't download the program to the camera.
You basically give it a string of commands and it responds. You could hook it to a PC and run it with Hyperterm if you wanted. :) |
Re: 2006 CMUcam2 Code
Quote:
|
Re: 2006 CMUcam2 Code
If you recently downloaded the camera code, you may have noticed that it doesn't work. No, you're not going crazy, the code on my website was broken because the last time I built the code I forgot to change the baud rate on serial port two to the same baud rate the camera expects. To fix my gaff, open up serial_ports.c, and change line 450 to this: "SPBRG2 = BAUD_115200" and Line 452 to: "TXSTA2bits.BRGH = 1". Sorry 'bout the hassle and yes, Kevin is a doofus.
-Kevin |
Re: 2006 CMUcam2 Code
Quote:
|
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
Re: 2006 CMUcam2 Code
This is a diff between the two versions I had available in my repo, so that I could patch my current working sources. I don't gaurantee it working, but it is a straight up diff between the old and the new:
Code:
diff -urNp -x *FRC* -x .svn* -x *.lkr -x *.hex ./../FIRST/tags/FRC-StandardCode-2006-[Kevin_Watson Camera]/ifi_utilities.c ./ifi_utilities.c |
Re: 2006 CMUcam2 Code
Quote:
|
Re: 2006 CMUcam2 Code
look. i don't know jack squat on all of this, and i know this may not be the right thread to post this in, but I'm getting severely disappointed in my team in the fact that all they seem to be doing is yelling at each other and not being very smart about it. :mad: i don't mind the argument, but they're all being immature about it. :mad:
anyway, i have two questions regarding the camera and the sensor. Question 1: I don't exactly understand how they want us to build a mock-up sensor target like the one they have on the field. I have the "instructions" (aka, the .pdf file), but I do not understand what the heck some of these pieces look like, how they're supposed to be connected to the base plate, etc. :confused: Question 2: I like the fact that we have code, but what after calibrating the camera, what files would I need to add to the main workspace (MPLab IDE C18) that I am using for the robot? Question 3 (ties in with question 2): Proving to the world the fact that I am a n00b programmer, how would I be able to re-program the code for the servos for another type of motor? I know that the code for servos differs from that of say a fisher price or a globe motor. Any assistance is greatly appreciated, and please, pray for my sanity .. :( |
Re: 2006 CMUcam2 Code
Quote:
Quote:
Good luck!! -Joe |
Re: 2006 CMUcam2 Code
I have been using the camera_s downloaded from your site and i have a quick question as to how can i tell if the camera is searching for the green or if it is following it.
|
Re: 2006 CMUcam2 Code
Quote:
Searching... Searching... Searching... Searching... Searching... ... on your terminal screen. If it's actively tracking, the camera will be pointed at the green thing, the little red LED on the camera should light up and you should be getting some statistics dumped onto your terminal screen. -Kevin |
Re: 2006 CMUcam2 Code
sorry i meant in code how do i tell, i am planning a function that needs to know if the camera has a target
|
Re: 2006 CMUcam2 Code
Quote:
-Kevin |
| All times are GMT -5. The time now is 19:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi