Talk:Orrery

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(FSO stack)
(FSO stack)
 
(4 intermediate revisions by 2 users not shown)
Line 38: Line 38:
 
MUCH appreciate it if people who have trouble getting this application
 
MUCH appreciate it if people who have trouble getting this application
 
to run would tell me about the problem at orrery.moko@gmail.com.
 
to run would tell me about the problem at orrery.moko@gmail.com.
 +
 +
 +
 +
I did a little test on SHR and that's waht came out:
 +
<pre>
 +
root@om-gta02 ~ $ export DISPLAY=:0
 +
root@om-gta02 ~ $ gdb /usr/bin/orrery -d /usr/share/orrery/
 +
GNU gdb 6.8
 +
Copyright (C) 2008 Free Software Foundation, Inc.
 +
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
 +
This is free software: you are free to change and redistribute it.
 +
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
 +
and "show warranty" for details.
 +
This GDB was configured as "arm-angstrom-linux-gnueabi"...
 +
(gdb) run
 +
Starting program: /usr/bin/orrery
 +
config: No such file or directory
 +
Full file name was "/media/card/orrery/config"
 +
/media/card/orrery/starNames.dat: No such file or directory
 +
opening Hipparcos star catalog.: No such file or directory
 +
 +
Program exited with code 0377.
 +
(gdb)
 +
</pre>
 +
could it be related to the impossbility to run orrery on shr?
 +
 +
[[User:Dareus]]
 +
 +
Actually, I (Ken Young) have had no problem running orrery with the
 +
SHR distribution.  I installed SHR, installed orrery with opkg,
 +
and it worked.  With the above error messages from gdb, it looks
 +
like gdb is eating the -d switch and its argument.  The -d switch
 +
is telling orrery where to for the star catalog, constellation
 +
outlines, etc.  the /media/card/orrery location is the default top
 +
directory compiled into the program for the data files.  -d
 +
overrides that default, but it is clear that when gdb starts running
 +
orrery, it is not passing that directory path to orrery.  What
 +
happens if you run orrery from the command line, with the -d
 +
/usr/share/orrery, but not with gdb?
 +
 +
I don't look in this talk section of the orrery page very often.
 +
You will get much quicker support responses if you email
 +
orrery.moko@gmail.com.  Thanks for trying out my program!

Latest revision as of 00:00, 22 December 2008

[edit] Accelerometers

nice! I like it

will it use the accelerometers to show the night sky 'behind' the phone? So you can pan the view by turning around or looking up?

(KY): Really, to do this right, we'd need a compass sensor in the Freerunner, in addition to the accelerometers, I think. Otherwise, how do you set the azimuth? If the gta03 has a camera, and if it is able to detect stars, we might have some options then. For what it's worth, there is an Android application called skyMap that uses the G1 accelerometers and compass to do exactly what you are suggesting here. The implementation is terrible, though - the display is terribly jittery, due to poor filtering of the accelerometers, and the compass information apparently isn't corrected for magnetic declination, so it there is a ~20 degree error in the azimuth it chooses to display, as least where I live.

[edit] FSO stack

Has anyone successfully tested it with FSO?


A: Yes, I have (with FSO and with SHR) it doesn't work because you do not have the /usr/lib/libpopt.so.0 file you can mail me, or Ken Young (the creator of this great app) and we will mail you the file

a few days ago another problem appeared on my SHR; when i launch it on the phone (via desktop icon or via terminal) i get an error, but when i ssh in and do for example DISPLAY=:0 /usr/bin/orrery -d /usr/share/orrery/ it does work


Ken Young said he intended to support Orrery on every distribution, so he will fix this.

Bug report: Same problem here (libpopt already installed)

(KY): I've ordered another Freerunner on which I will install SHR, and see if I can cure these problems. I'll also make it use Gypsy for GPS access, rather than gpsd (gpsd will still be used when running atop 200x.x distributions, of course). I would VERY MUCH appreciate it if people who have trouble getting this application to run would tell me about the problem at orrery.moko@gmail.com.


I did a little test on SHR and that's waht came out:

root@om-gta02 ~ $ export DISPLAY=:0
root@om-gta02 ~ $ gdb /usr/bin/orrery -d /usr/share/orrery/
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "arm-angstrom-linux-gnueabi"...
(gdb) run
Starting program: /usr/bin/orrery
config: No such file or directory
Full file name was "/media/card/orrery/config"
/media/card/orrery/starNames.dat: No such file or directory
opening Hipparcos star catalog.: No such file or directory

Program exited with code 0377.
(gdb)

could it be related to the impossbility to run orrery on shr?

User:Dareus

Actually, I (Ken Young) have had no problem running orrery with the SHR distribution. I installed SHR, installed orrery with opkg, and it worked. With the above error messages from gdb, it looks like gdb is eating the -d switch and its argument. The -d switch is telling orrery where to for the star catalog, constellation outlines, etc. the /media/card/orrery location is the default top directory compiled into the program for the data files. -d overrides that default, but it is clear that when gdb starts running orrery, it is not passing that directory path to orrery. What happens if you run orrery from the command line, with the -d /usr/share/orrery, but not with gdb?

I don't look in this talk section of the orrery page very often. You will get much quicker support responses if you email orrery.moko@gmail.com. Thanks for trying out my program!

Personal tools

Accelerometers

nice! I like it

will it use the accelerometers to show the night sky 'behind' the phone? So you can pan the view by turning around or looking up?

(KY): Really, to do this right, we'd need a compass sensor in the Freerunner, in addition to the accelerometers, I think. Otherwise, how do you set the azimuth? If the gta03 has a camera, and if it is able to detect stars, we might have some options then. For what it's worth, there is an Android application called skyMap that uses the G1 accelerometers and compass to do exactly what you are suggesting here. The implementation is terrible, though - the display is terribly jittery, due to poor filtering of the accelerometers, and the compass information apparently isn't corrected for magnetic declination, so it there is a ~20 degree error in the azimuth it chooses to display, as least where I live.

FSO stack

Has anyone successfully tested it with FSO?


A: Yes, I have (with FSO and with SHR) it doesn't work because you do not have the /usr/lib/libpopt.so.0 file you can mail me, or Ken Young (the creator of this great app) and we will mail you the file

a few days ago another problem appeared on my SHR; when i launch it on the phone (via desktop icon or via terminal) i get an error, but when i ssh in and do for example DISPLAY=:0 /usr/bin/orrery -d /usr/share/orrery/ it does work


Ken Young said he intended to support Orrery on every distribution, so he will fix this.

Bug report: Same problem here (libpopt already installed)

(KY): I've ordered another Freerunner on which I will install SHR, and see if I can cure these problems. I'll also make it use Gypsy for GPS access, rather than gpsd (gpsd will still be used when running atop 200x.x distributions, of course). I would VERY MUCH appreciate it if people who have trouble getting this application to run would tell me about the problem at orrery.moko@gmail.com.