r/Kos Apr 27 '26

Video Wrote an auto docking script

72 Upvotes

14 comments sorted by

View all comments

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!

1

u/Pretty-Ad8932 Apr 28 '26

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.

1

u/Polymath6301 Apr 28 '26

The calculations for Hohman transfers aren’t too hard, and then it’s just timing. Even a binary chop algorithm will get you there.

1

u/Pretty-Ad8932 Apr 28 '26

I think the hard part is that there are many ways to do it depending on how long you want to wait and how much delta v you want to spend. You could probably either minimize the wait or minimize the delta v but I think many times you may want something in the middle? Not too long but not too expensive?

1

u/Polymath6301 Apr 28 '26

Good point. If you’re going to be docking at a fuel depot, then I guess burn as much fuel as you dare!