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?

  • $\begingroup$ 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! $\endgroup$ – uhoh Jun 11 at 12:16
  • $\begingroup$ 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. $\endgroup$ – uhoh Jun 11 at 12:22
  • $\begingroup$ 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 $\endgroup$ – Adam Jun 14 at 21:41

Grady Hillhouse was able to get it working on a Nucleo F401RE development board: link. I improved on that to get it on an ESP8266 wifi module. And added some extra stuff to calculated satellite overpasses and see if the satellite is visible: project , library

This is focused on embedded devices, but it shouldn't be to hard to get it running in other environments.

  • $\begingroup$ ESP8266! excellent! Any plans to implement a microPython wrapper? $\endgroup$ – uhoh Jul 3 at 23:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.