|ID||Creation date||May 12, 2008|
|Platform||S60 3rd, S60 3rd FP1||Tested on devices||N95 8Gb|
|Keywords: GPS Compass|
Application "GPS Compass" demonstrates how to use received coordinates to define the direction of movement. Also this application allows you to define current speed of moving and maximal speed of moving.
The application shows the correct results only when movement. The faster the device is moved in one direction, the better the results of calculation will be. The device must be directed to the side of moving.
Class CCompassEngine allows to calculate the vector of movement and the device speed. The displaying of the compass and its data is produced with the help of custom controls: CCompassDrawer and CCompassDataDrawer.
The AppView calculates the position and size of custom controls on the screen. Depending on dimension AppView the custom controls are located from left to right or from top to bottom.
Source code (with detailed comments): File:Gps compass.zip