Namespaces

Variants
Actions

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.

Celestial Sphere

From 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 05:32.
69 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.

×