The Nokia N97 has a built in compass to show you which direction you’re heading. One downside is that each time the Compass should be calibrated before use. According to Nokia, it should be calibrated by rotating the device around all axes in a continuous movement until the calibration indicator changes its colour to green. Mark from The Nokia Blog demonstrates how it should be done:
But Norman John from the Symbian World has found an easier and faster way to do it. The video below shows the faster way to do it.

Please watch also to that Movie on Youtube to calibrate the Kompass. You will see on this app that you can have more then one good state to the compass. An GOOD state and an BEST state. so maybe this calibration only gives an GOOD state. It looks funny. I´m not shure..
Have a good time, by !
Link:
http://www.youtube.com/watch?v=Jemd3jFj98A