Skip to content
Discussion options

You must be logged in to vote

Okay, I figured it out. It's not just the planet1 hard-coded position, but the hard-coded positions for planet1 and the sun. The sun in this scenario is just a sun message with position. I assume Vizard doesn't take that sun message into account since no sun was made with the gravFactory. The fix is to create the sun and Earth using the gravFactory and Spice (see the flyby scenario for example) and then create position messages for the Earth and the sun based on Spice. Based on the Flyby scenario code, this might look like:

    sunPositionMsg = gravFactory.spiceObject.planetStateOutMsgs[sunIdx]
    earthPositionMsg = gravFactory.spiceObject.planetStateOutMsgs[earthIdx]

The sun position me…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by patrickwalton
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant