Tuesday, November 10, 2009

More IR Seeker Examples and Code

I recently posted a quick video of Steve Hassenplug and the robot he built to follow the IR beacon you'll be using in HotShot! Check out this link to see a RobotC video and the supporting code used. The object being tracked is an IR ball, but it runs at the same 1200Hz frequency as the beacon in HotShot!

You can see the video and code here: http://www.education.rec.ri.cmu.edu/content/lego/resources/index.htm

Ken

1 comment:

Tim Hackett said...

Hi, I would first like to thank you for this very informative post. I was wondering about the coding...When I loaded it into RobotC with all the Include files and everything correct, one line of code gave an error when compiling:

HTDIRreadAllACStrength(irSeeker, sensorValuesAC);

It gives the error of: "**Error**:Procedure call Parameters don't match declaration for 'HTDIRreadAllACStrength(tMUXSensor muxsensor, short acS1, short acS2, short acS3, short acS4, short acS5)'"

How do I fix this problem?

Thanks.