Question

How do I update MoonPosition and SunPosition, in the example below, using CommonTime methods?

The time and position are the same even though 900 seconds was added using CommonTime method addseconds(). What gives?

comtime.get(cday,csod, cfsod); cout << "cday= " << cday << " csod= " << csod << " cfsod " << cfsod << endl;

comtime.addSeconds(900.0); comtime.get(cday,csod, cfsod); cout << "cday= " << cday << " csod= " << csod << " cfsod " << cfsod << endl; moonPosition.getPosition(comtime);

MOON 140903 060000 -352486255.41559 -48154572.102279 -119656940.85053 0 0 0 cday= 2456904 csod= 21600 cfsod 0 cday= 2456904 csod= 22500 cfsod 0 MOON 140903 060000 -352486255.41559 -48154572.102279 -119656940.85053 0 0 0

-- JimMaiullo - 03 Sep 2014

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

No such template def TMPL:DEF{PROMPT:supportquery}

Topic revision: r1 - 03 Sep 2014, JimMaiullo
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback