-
Notifications
You must be signed in to change notification settings - Fork 6
Minimal integration example #3
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
base: master
Are you sure you want to change the base?
Conversation
| int main() { | ||
| // generate satellites to collide | ||
| SatelliteBuilder satelliteBuilder; | ||
| std::vector<Satellite> satellites{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So I guess the satellite type is not here as it does not impact the results? If it does, whats the default value? Maybe you can set it too here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type impacts the results. From the documentation:
Needed for determining the right equations for breakup.
If not given this will be always a SPACECRAFT.
I left it out since I only wanted to give a minimal example here and there are plenty of examples in the example-config folder for the demo code in main.cpp.
| std::vector<Satellite> satellites{ | ||
| satelliteBuilder | ||
| .setID(0) | ||
| .setPosition({0.,0.,0.}) // [m] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WHat happens to this position information? Discarded? Or it gets checked that the two sats are close enough to collide?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaik only the position of the first satellite matters as this is used as the point where the debris is spawned.
gomezzz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me fine. What about you @darioizzo ?
Description
Adds a minimal example on how to include this project in a C++ code.
main()