Conversation
| int main() { | ||
| // generate satellites to collide | ||
| SatelliteBuilder satelliteBuilder; | ||
| std::vector<Satellite> satellites{ |
There was a problem hiding this comment.
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.
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.
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.
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.
For me fine. What about you @darioizzo ?
Description
Adds a minimal example on how to include this project in a C++ code.
main()