Celestial Sphere
Article Metadata
Code Example
Tested with
Compatibility
Article
Celestial Sphere
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


