# How to implement SGP4 C++, satellite propagator?

I would like to ask about how to implement the SGP4 code in C++ by Vallado. How can I implement the libraries that are available in https://celestrak.com/software/vallado-sw.php. I think that are the latest routines. There are some test cases, but I don't know if it would be possible to propagate the satellite and then obtain the orbital elements at the intervals of time calculated. I would also like to extract other types of data.

Has someone done this and doesn't mind sharing it?

• Have you checked the ReadMe.txt in the three SGP4 related folders (SGP4, SGP4DC, and TESTSGP4)? Can you mention how much is clear and where specifically you need help? Thanks, and Welcome to Space! – uhoh Jun 11 '19 at 12:16
• There is what looks like a different source for C++ on the page SGP4 Orbit Determination AIAA 2008-6770 instead. Inside that Source Code zip file AIAA-2008-6770.zip there is a very helpful-looking PDF sgp4dc CodeReadme.pdfthat might be more of what you are looking for. – uhoh Jun 11 '19 at 12:22
• Thank you, I already looked at Revisiting Spacetrack Report #3 AIAA 2006-6753. It is just that the program doesnt compile well and it crashes when I introduce the paramenters – Adam Jun 14 '19 at 21:41