Small universe on Windows Mobile

Small universe on Windows Mobile

  I saw a very interesting application on codeproject. Look at the constellation diagram on windows mobile . Imagine the following scene. On a cold winter night in Beijing, the northwest wind blew away the pollutants above the city. The bright stars can be seen with the naked eye, so I asked myself what is the name of the bright star just south? Funny, I'm not a fan of astronomy, how do I know. At this time, I took out my Windows Mobile phone without a hurry, ran a program, entered my time zone and city, and I was able to see the stars in my current sky and find out their respective magnitudes. This Isn’t it interesting?

  This idea came from Giannakakis Kostas in Greece. He has ported PlanetFinder from Nokia's Series60 2nd Edition phones to Windows Mobile. Initially, PlanetFinder was just a small Java application for constructing sky images. PlanetFinder also added the GPS function. If the Windows Mobile device running PlanetFinder has a GPS module, it can automatically display the current constellation map based on the accuracy, latitude and time information measured by the GPS.

  The PlanetFinder developed by the author is a program based on .NET CF 2.0 and running on the windows mobile 5.0 SDK. When downloading and compiling, you will find some errors, the main one is that the reference to "Microsoft.WindowsMobile.Samples.Location" cannot be found. If Visual Studio2008 is installed , we can find it in "C:\Program Files\Windows Mobile 5.0 SDK R2"/Samples\PocketPC\Cs" find the example named "GPS", then open "Gps.sln", compile, in the generated "\bin\Debug" directory, compile the generated "Microsoft.WindowsMobile.Samples" .Location.dll" is copied to the PlanetFinder folder, and then the " Microsoft.WindowsMobile.Samples.Location.dll " is added to the project of Visual Studio2008 a reference " to compile. As shown in Figure 1 below:

Figure 1: Add a reference to Microsoft.WindowsMobile.Samples.Location.dll

  Change the target platform, select WM6.0 SDK, then compile, select WM 6.1.4 simulator when debugging, the effect of program running is shown in Figure 2 below:

Figure 2: The effect of PlanetFinder running

  In the picture, we can see Venus ( Venus), Jupite r ( Jupiter), Mercury (Mercury), Sun (Sun), Saturn (Saturn) position. In addition, we can also set the location, time zone, and other parameters, and decide whether to enable GPS. As shown in Figure 3 below:

Figure 3: Parameter settings

  Quite interesting, ha ha. If God is beautiful, you can try it tonight.

Reference material: PlanetFinder for Windows Mobile .

Reference: https://cloud.tencent.com/developer/article/1018245 Small Universe on Windows Mobile-Cloud + Community-Tencent Cloud