Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
process_elements_positionadds the length of every earlier sibling totop_position, as if all components were stacked end to end. That holds for the children of the rocket and of a stage, but everything else is placed relative to the front of its own parent. A fin set listed after an inner tube or a bulkhead in the same body tube is therefore shifted back by the length of that component.In
Anonymous--Eta, for example, the fins end up 4.012 m from the nose tip instead of 2.493 m, so the initial static margin in RocketPy is 11.82 calibers. With this change it's 3.42 (OpenRocket gives 3.39 near Mach 0.3).I compared the positions with OpenRocket's
getComponentLocations()for all the examples. Of the 335 components that can be matched by type, name and length, 145 were misplaced, including 18 of the 30 fin sets. With this change all of them match in OpenRocket 22.02, 23.09 and 24.12.develop).parameters.json, I only updated the fin and rail button positions that this changes.