From: Jose L. C. <jlc...@gm...> - 2010-12-20 22:49:01
|
Hi Matthew, I'm not sure if i'm understanding your proposal. Are you thinking about transform gsatellite in a "StelObject" as planets, stars, etc.? I believe, this option would help us to benefit from other stellarium classes and resources and probably will open more possibilities in the future (for example, make easy to you and other developers build satellite functionality). It's worth. The only thing that get me worried is the unit test. I don't know how to code unit test to verify a StelObject. Are you using some test framework (cppunit or similar) to test this objects?. How are unit tests been implemented now in stellarium?. If you agree, I can stop other initiatives and start this holidays to implement a Satellite StelObject (I'll need some help, but is really interesting). Cheers, 2010/12/18 Matthew Gates <mat...@gm...> > One of the reasons I stopped was that I thought that if I were to > start to do this sort of interfacing between the Stellarium positional > norms and the Satellites module, I wondered if it might be better to > just re-code gsatellites with Vec3d and to somehow remove the internal > observer object and so on. i.e. make the satellites calculation > "native". If this can be done, then we have the chance to render > satellites as objects viewable from other bodies, which would be > really cool. I worthy goal, but a lot of work. > > What do you think about that, Jose? > > Matthew > > On 18 December 2010 20:47, Matthew Gates <mat...@gm...> wrote: > > I'm also working on this in my branch. > > > > I got eclipsing done. I also have some relative brightness data in my > > branch. I still need to calculate the phase angle, which I think is > > what you are looking at too. > > > > Fabien's hint is to get the observer location in heliocentric > > coordinates, and then observer -> satellite -> sun angle is easy. > > Except that getting the satellite position as a in heliocentric vector > > is not obvious. This is because the gsatellite library has it's own > > observer and position in geocentric coords. > > > > I tried to get the Satellite position by adding the earth center > > heliocentric vector to the satellite position as stored by the > > gsatllite library (adjusting scale because gsatellites uses km, and > > heliocentric vectors from Stellarium core are in AU). > > > > I didn't manage yet to adjust for the Earth's rotation, and got > > distracted from the task. > > > > Matthew > > > > > > > > On 18 December 2010 18:14, Jose Luis Canales <jlc...@gm...> > wrote: > >> Hi, > >> I'm developing an algorithm to get the visibility of artificial > >> satellites. To make that, I need to know the sun position in > >> FrameEquinoxEqu. I'm looking for a code example in the stellarium core > >> classes but I have not success. > >> Could anyone send me some indications, about how to get it? > >> > >> Regards. > >> > >> > >> > ------------------------------------------------------------------------------ > >> Lotusphere 2011 > >> Register now for Lotusphere 2011 and learn how > >> to connect the dots, take your collaborative environment > >> to the next level, and enter the era of Social Business. > >> http://p.sf.net/sfu/lotusphere-d2d > >> _______________________________________________ > >> Stellarium-pubdevel mailing list > >> Ste...@li... > >> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > >> > >> > > > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Stellarium-pubdevel mailing list > Ste...@li... > https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel > |