quinta-feira, 16 de dezembro de 2010

FireTracker


Libraries Used:

Description:
This application is very similar to the ColorTracker but instead of colors it tracks flames.

To link the wiimote to your computer you just have to have the bluetooth on and press 1 & 2 buttons.

It has some vertical lines, the white ones represent the x center of the flames and the other two, x min and x max, which are blue, divide the image in three parts. If the white lines are on the left part the application gives the robot an order to turn left and if they are on the right part it should turn right. 
There are one other horizontal line, the y center of the flame which is white.  The flame is represented by a yellow circle. If it is between the x min and x max lines the robot goes foward. 

The blue lines can be adjusted using the correspondent sliders. 

The serial commands (w,s,a,d and g) can be sent at a 4800 baud to the COM port specified on the text field, you just to write it there and press ENTER (example: "COM5").