×
Namespaces

Variants
Actions

GPS Compass

From Nokia Developer 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 compass.zip

Internal Links

This page was last modified on 18 September 2012, at 08:56.
115 page views in the last 30 days.
×