PlanetFinder
1 avr. 2005 - 08:19

PlanetFinder is a port of a Java Applet that constructs sky images to Series 60 Platform.

To construct the image of the sky the application needs the time and the location of the user. The time is read from phone's clock every time the application is started. To determine the location, the application initially reads the time zone information from the phone's clock and selects the biggest city in that time zone. The selection is made between all cities with a population of 3 millions and more. Daylight savings time is taken into account.

Regarding the image of the sky, please note the following (taken from the Java Applet's site:
-  The compass directions may look wrong, but that is because the screen represents the way the sky looks when you look straight up. The compass directions are therefore a mirror image of the compass directions on a map, which represents a view of the land looking down from above.
-  The spherical sky has to be projected onto the flat screen. This projection produces distortion, just as a map of the earth inevitably has some distortion. The greatest distortion occurs near the horizon.
-  The disks of the sun, moon, and planets are not drawn to scale. Their brightnesses are given as magnitudes to the right of their names. A more negative magnitude means a brighter planet. The magnitudes given for Saturn do not include the brightness of the rings, so Saturn will usually be brighter than indicated.
-  This program is only designed to have a limited degree of accuracy, sufficient for most naked-eye astronomy applications.

The application uses full screen mode so that the image of the sky will be larger. This means that the Soft keys are not displayed. Pressing the left soft key though will invoke the menu, while pressing the right soft key will exit the application. The user has two options of selecting the location. In "City selection" mode, the user can select a city from the list with all the cities with population of 3 millions and more. In "Location selection" mode the user can manually set his/her latitude and longitude.

Location_selection.png City_selection.png

In both modes the user can also:
-  Set the time and date.
-  Select whether all planets or naked-eye planets only will be visible.
-  Hide the names of the planets.
-  Select among the image of the sky, the image of inner solar system and the image of outer solar system.

The application will remember the user's settings when the application closes. One exception to this is the time and date, which will be always up-to-date.

The user can use the arrow keys to navigate between the hour and the minutes field in the time representation. The active field is high-lighted. With the Up and Down keys the active field can be incremented/decremented. In "Location selection" mode the user can do the same with the latitude and the longitude. This allows the quick modification of the most common parameters.

Currently the application can be installed in two languages, English and Greek. The application has been tested in the Windows emulator and a Nokia 6600 phone.

Porting from Java

Porting from Java was easier than I first thought! All the necessary functions and classes were already present. Drawing and timing functions are as easy as Java or MFC. I even found some goodies not usually present at other libraries, such as the capability of consistently adding minutes and hours to a TTime class and classes for easily writing and reading from an .ini file. One drawback however is that the TTimeIntervalBase class is 32-bits only. In PlanetFinder you can't move too far back or forth from year 2000 without losing significantly in accuracy anyway, but a wider TTimeIntervalBase class could be useful in other applications.

Some intricacies of Series60 Platform gave me a headache however. When I first designed the application I made my View class inherit from CCoeControl (as many of the available examples do). At first I've used dialogs to edit the application's parameters and everything was fine. Later I thought it would be better to use a Settings List but I've found out that this was impossible with the architecture I've selected. I needed to redesign the application around a CAknView and a CoeControl container to incorporate the settings list.

One issue that one must pay close attention to, when porting existing code to Symbian OS, is that writeable static data are not permitted. Variables that are usually declared as static const, have to be declared as normal variables and initialised in the constructor. One such case in PlanetFinder is the TRgb array that holds the colours of the planets. See the Essential Idioms section in Symbian Developer Library for an explanation why such a table can not be made static const.

Download Sources and sis file

Like the original applet, the application is distributed under the terms of GPL licence.

PlanetFinderSources.zip
PlanetFinderSources.zip
 planetfinder.sis
planetfinder.sis
Download posted avril 1st, 2005 by kgiannak

Soumis par Anonymous le dim, 2005-04-17 04:26.

PlanetFinder, a great Applet. It runs properly in Nokia 6670, but it would be better to have an option to show some bright star names.

Soumis par LauraOrder (non vérifié) le sam, 2005-05-21 07:39.

Seems it is not compatable with the Nokia 3650.

Soumis par kgiannak le jeu, 2005-06-02 11:25.

PlanetFinder doesn't work in 3650 because it is compiled with Developer Platform 2.0 SDK, while 3650 needs Platform 1.x. I've compiled it with Platform v1.2 SDK and tested it in the emulator but I have no compatible phone for testing. If anyone is interested, please reply here. I could send the sis file via e-mail.

Soumis par HELLTEXter (non vérifié) le mar, 2005-09-13 07:13.

Hi there!

I would indeed be interested in a version for the 3650 / 3660 and would therefore be glad if you posted it to helltex@freenet.de.

Thanks in advance!

Dirk.


Soumis par kgiannak le mar, 2005-09-20 09:22.

You can download PlanetFinder for developer platform 1.2 from here. It has been tested by NewLC readers on both a 3660 and a SX1 phone.

Soumis par Messer Sagredo (non vérifié) le mar, 2006-05-16 14:32.

Hi everybody. This nice app works fine under my Nokia 6630, congratulations. An useful extension would be to allow to quickly shift forward/backward also the date elements (or at least the day), so that the movement of planets/sun/moon can be made visible at larger scales. Another improvement could be a simple tracking function, allowing to select a body and keep it fixed while other bodies and the celestial sphere move. This could be enriched by a simple zoom function, allowing to get a closer view of the surroundings of the tracked body.

Soumis par Steve A (non vérifié) le mer, 2006-03-22 10:37.

Hi, I live in Johannesburg, a city that is not in the city list. Being south of the equator, I need to enter the latitude as a negative number. The phone's dialog box/editor does not appear to allow the use of the hyphen - symbol. Typing the *+ key brings up a "select symbol" dialog, but with only the symbols "* + p w". There is no - symbol. How do I enter a negative latitude? Best regards, Steve A

Soumis par Anonymous le ven, 2006-03-24 07:55.

You are right about this behaviour. A simple workaround is to select a city on the southern hemisphere first (like Sydney) and then choose location selection from the menu. The minus sign will appear and you will be able to enter a negative latitude.

Soumis par orangpelupa (non vérifié) le mer, 2006-08-16 17:08.

or, just hold down # on your keypad, it will go to "abc" normal mode,and you can use * to type -

Soumis par Anonymous le mar, 2006-07-04 21:24.

its very very nice software ,... i really like it

but how to use the source files..

i m using it on 6600 and its working fine ..

thx for proving such cooool software

tofriends123@yahoo.com


Soumis par MackNick (non vérifié) le jeu, 2006-07-06 23:36.

GPS support would be great to locate where you are.

Soumis par Maurizio (non vérifié) le mer, 2006-11-08 08:54.

I live in Bologna (Italy). I have found the software casually on Internet. Great software, very nice for planet localization and planning for planetary observation with telescope. I have posted it on a italian forum. Sorry for my bad english... Thank You Maurizio

Soumis par Rene Castberg (non vérifié) le ven, 2006-11-17 12:13.

Hi,

Is there anychance of getting this application built for s60 3rd edition?

René


Soumis par Anonymous le mer, 2007-02-14 10:33.

Hi,

I'm looking for it, too. Did you get it?

Janko



copyright 2003-2009 NewLC SARL