Kerbal Gravity Program
- 2 Devlogs
- 5 Total hours
it is a tool that allows for aerospace engineers and KSP players to make THE MOST fuel efficient paths to their destinations in space.
it is a tool that allows for aerospace engineers and KSP players to make THE MOST fuel efficient paths to their destinations in space.
KGP is a mission planning tool I’m building for KSP players and actual aerospace engineers to map out complex trajectories. It’s loosely based on libraries like Skyfield, Poliastro, and trajectorize. The ultimate goal is to make it easy to plot out massive interplanetary trips, whether you’re trying to reach Jool and Sarnus (with the Outer Planets Mod) or calculating a real-world journey out to Neptune.
Today was way more math-heavy than I expected. I spent most of my time building out the core infrastructure:
Orbit class to actually handle orbital mechanics.Body class for celestial bodies and barycenters.absolute_position function to figure out the exact coordinates of an object in a nested system, tracking it all the way back to the root central body as the origin.Anyway, here is a small test run of the Python prototype in action:
KGP is a mission planning tool I am building for KSP players and actual aerospace engineers to map out complex trajectories. Loosely based on Skyfield, Poliastro and trajectorize, The goal is to make it easy to plot out massive interplanetary trips, whether you are trying to reach Jool and Sarnus (with the Outer Planets Mod) or calculating a real-world journey out to Neptune.
Mapped out the 4-phase development roadmap
Coded the Universal Time Converter
Numba memory management: I found out that numba (the Python library I’m using to get close to C++ speeds) really struggles when handling pointers and raw memory addresses.
Python can actually segfault: It actually threw a segmentation fault—which felt crazy to see inside Python code! Because of this, using nb.defered_type() is completely out of the picture for this architecture, so I’ll have to use something like scipy and numpy.
well for your entertainment, here is a screenshot of me trying to figure out why the hell was VS code giving me a problem (i forgot a semicolon on the line before):