Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

GPS Compass

From Wiki
Jump to: navigation, search
Article Metadata
Code ExampleArticle
Created: Den123 (11 May 2008)
Last edited: hamishwillee (18 Sep 2012)
Reviewer Approved    Thumbs up icon sm.jpg

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

Internal Links

This page was last modified on 18 September 2012, at 05:56.
92 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.