×
Namespaces

Variants
Actions
Revision as of 08:32, 7 February 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Celestial Sphere

From Nokia Developer Wiki
Jump to: navigation, search


Article Metadata
Code ExampleTested with
Devices(s): N95 8Gb
Compatibility
Platform(s): S60 3rd, S60 3rd FP1
Article
Keywords: Celestial Sphere
Created: Den123 (02 May 2008)
Last edited: hamishwillee (07 Feb 2012)

Celestial Sphere

CelestialSphere.png

When observing the sky, all the astronomical objects seen to be located at the dome surface, in the centre of which there is the observer. This imaginary dome forms the upper half of the imaginary sphere which we call celestial sphere.

The program "Celestial Sphere" displays on the screen the celestial sphere (upper sight) and the location of all visible GPS satellites on it and also the strength of the signal of each satellite. The satellites wich are used for defining current location are marked with the green color, but visible and not used ones are marked with the gray color.

For obtaining coordinates of the satellites there is used class CPositionReader.

For data displaying there are used two custom controls:

  • CSputnikDrawer shows the sphere and satellites
  • CSputnikBarDrawer shows indicates of the strength of the satellites signal

These elements displays from left to right or from top to bottom depending on the size of AppView.

Rereading of the data is going every 3 seconds if the program is active.

Source code (with detailed comments): File:CelestialSphere.zip

Internal Links

This page was last modified on 7 February 2012, at 08:32.
94 page views in the last 30 days.
×