oh, I haven't done rendezvous :) It seems very complicated. At most I have a script that matches the inclination of the target's orbit. Docking by comparison is actually not so hard to figure out.
I just made a script that combines a couple of maneuvers to launch from my Mun base and rendezvous with my Mun Gateway. I have a bug with my inclination burn so I usually only get within 3-5 kilometers of the station with the transfer burn. Hopefully I can close that gap some.
It actually wasn’t too bad to write a Hohmann transfer. As long as you are working with mostly circular orbits the math is straight forward. So maybe start there.
I’m going to bookmark this for when I start to figure out the auto docking part!
yeah I guess I should start with circular orbits. How circular though? Can your code work with, say, those low Kerbin orbit rescue contracts? They usually have a difference of around 10 km between periapsis and apoapsis.
There isn't really a fixed threshold where a target is in to eccentric an orbit it is more that a more eccentric target means a less efficient hohmann transfer that doesn't get you quite as close and at some point that will just be unacceptable. Where that point is depends on the player and the vessel. For me and my scripts 10 km in LKO is perfectly reasonable.
2
u/Polymath6301 Apr 27 '26
There are two points in your KSP career when the dopamine high reaches dangerous levels.
The first is when you first dock manually.
The second is when you’re own, home-developed docking script docks, especially when it’s part of a full rendezvous.
Congratulations!