Namespaces
Variants
Actions
Revision as of 08:56, 18 September 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

GPS Compass

Jump to: navigation, search
MultiMediaTile.png
Article Metadata

Code Example
Article
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

164 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved