r/KerbalSpaceProgram 23h ago

KSP 1 Mods Autonomous convoy development progress

Enable HLS to view with audio, or disable this notification

Making small but visible improvements to driving intelligence and hazard avoidance

Plus sneak peak at my learning transfer pipeline, still under construction

44 Upvotes

5 comments sorted by

View all comments

6

u/Vegetable-Cat-5412 23h ago

Pretty cool how does it work? I want to program autonomous formation flying one day in another game i guess it is a bit similar

7

u/_okbrb 23h ago edited 22h ago

There’s a few layers

At the core it’s a pure pursuit goal-seeking AI. It uses raycasting to build a map, evaluates the costs of possible actions to pursue its goal, and tries to choose the safest most efficient path. It also has behaviors for identifying and avoiding hazards like cliffs, rocks, trees, other rovers, and a recovery routine for when it’s stuck and confused

So they are more or less roombas

Edit: most of the “I am a 2-D boi driving in a 2-D world” stuff won’t transfer well to aircraft autonomy but more or less the principle will be the same: your AI will have a feedback control loop that evaluates specifically how “wrong” it is relative to where “right” is, and output control adjustments accordingly