Click play, you will see the demonstration of this project.
With the acceleration and compass data, the movement of the stick can be
tracked while the user moves the stick.
This is the basis of a lot of sport game designs
(such as Wii, Xbox, and etc)