r/Kos • u/CardiologistLeft2468 • Jul 22 '26
Docking Automation
i was playing ksp and i was wondering if i could get kOS to automatically dock (or atleast fly up to the ship) thanks for your help!
5
Upvotes
7
u/IJustAteABaguette Jul 22 '26
You most definitely can use kOs for that!
2
u/JarnisKerman Jul 23 '26
Kevin Gizi made a YouTube series (actually two) about kOS. One of the final episodes, he does docking. Highly recommended.
2
u/Polymath6301 Jul 23 '26
Yes, yes you can. But don’t try to do that first. Just like docking in vanilla, it’s not something you should go for straight away in Kos.
2
u/JitteryJet Jul 23 '26
Coding a docking autopilot is a "project". You will need to learn vectors, PID loops, Steering Manager etc. It's a good project but it will not be a small program, you cannot cheese it like say a launch to orbit.
Likewise "fly up to the ship" is a rendezvous maneuver which requires a basic understanding of orbital mechanics.
If you just want an autopilot with a menu interface there are several KSP mods. My favourite is MechJeb which is a sort of Swiss Army Knife autopilot (it does some stuff well, other stuff badly).
1
u/luovahulluus Oct 07 '26
Back in the day I made a script that rotated my vessel toward a target docking port. I run the same script on both vehicles. Then I just gently rammed the vehicles together, and the docking ports would be aligned.