|
Re: C code to get information from CMUcam2
Hello and welcome to Chief Delphi. It sounds like you're using a different system than we all use in our competition, but it's likely that some people around here will still be able to help you.
If you use the documentation that Max linked to, you should be able to figure out a lot about the CMUcam2 protocol. From the work I've done with it, it's pretty simple. Send a few bytes out your UART, terminate it with a carriage return, and you'll get back an ACK and/or the data you requested. All of the commands are documented in the CMUcam2 manual, and on Kevin Watson's site. As for the actual code to read and write to your UART, that's beyond the scope of my knowledge. Somebody else around here may know, or you can poke around on Google. Once you've got that figured out, the CMUcam2 interface is pretty simple. (As somewhat of a side note, you can play around with the commands and see what they do by plugging the CMUcam2 into your computer, and then using a program like Hyperterminal to send and receive the data.)
__________________
Team 1743 - The Short Circuits
2010 Pittsburgh Excellence in Design & Team Spirit Awards
2009 Pittsburgh Regional Champions (thanks to 222 and 1218)
2007 Pittsburgh Website Award
2006 Pittsburgh Regional Champions (thanks to 395 and 1038)
2006 Pittsburgh Rookie Inspiration & Highest Rookie Seed
Team 1388 - Eagle Robotics
2005 Sacramento Engineering Inspiration
2004 Curie Division Champions (thanks to 1038 and 175)
2004 Sacramento Rookie All-Star
_
|