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.
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