Revision as of 11:08, 15 May 2008 by Forum Nokia KB (Talk | contribs)

GPS Compass

From Nokia Developer Wiki
Jump to: navigation, search

ID   Creation date May 12, 2008
Platform S60 3rd, S60 3rd FP1 Tested on devices N95 8Gb
Category Symbian C++ Subcategory LBS
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.

Gps compass.PNG

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

MOSH page

Internal Links

105 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.


Thank you!

We appreciate your feedback.