Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

North-up viewing of high-orbit objects #1785

Merged
merged 5 commits into from
Jun 4, 2014
Merged

North-up viewing of high-orbit objects #1785

merged 5 commits into from
Jun 4, 2014

Conversation

emackey
Copy link
Contributor

@emackey emackey commented Jun 4, 2014

DynamicObjectView.js already knows how to auto-select East-North-Up or VVLH for different objects based on their fixed-frame velocity. This pull adds some logic to introduce a "North-Up" view for high objects like GEO and Molniya spacecraft, and passing asteroids. The new view shows the Earth "rightside-up" (with the North Pole oriented towards the top of the screen) behind the tracked object. This new view is automatically selected in a manner partially inspired by camera mechanics in the game Kerbal Space Program.

@mramato
Copy link
Contributor

mramato commented Jun 4, 2014

I suppose this also fixes #824?

@emackey
Copy link
Contributor Author

emackey commented Jun 4, 2014

Yes it does fix #824, I forgot to mention. The "pop" is where the Molniya becomes slow as measured in Fixed frame, as they are designed to do at the top half of their orbit, and we incorrectly switch to East-North-Up. With this pull, they stay on the new North-Up view for their entire orbit.

Cartesian3.normalize(cartesian, zBasis);
Cartesian3.normalize(deltaCartesian, deltaCartesian);

Matrix3.multiplyByVector(toInertial, zBasis, zBasis);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can just normalize inertialCartesian and inertialDeltaCartesian and remove these matrix multiplies.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bagnell I think this is your code, or @mramato's. I tried not to change the functionality of the VVLH stuff. But I'm open to upgrading it as part of this branch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talked in person. Update soon.

@emackey
Copy link
Contributor Author

emackey commented Jun 4, 2014

I think all comments so far have been addressed.

bagnell added a commit that referenced this pull request Jun 4, 2014
North-up viewing of high-orbit objects
@bagnell bagnell merged commit ad9959e into master Jun 4, 2014
@bagnell bagnell deleted the north-up branch June 4, 2014 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants