Skip to content

About

Autopilot for a plane in the game Kerbal Space Program using KRPC (Kerbal Remote Procedure Call)

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

27 Commits

Folders and files

Repository files navigation

KSP Autopilot

This is an autopilot i made for Kerbal Space Progam using KRPC. It can take off, climb, cruise, descend and land the plane autonomously.

Capability

  • Fully automatic takeoff, climb, cruise and landing]
  • Able to land at any runway (you need to hardcode latlong and heading of the runway, but there is a tool to help)
  • Can land smoothly

some examples: medal medal medal

How it works

The autopilot is a state machine that goes through different flight phases. It uses a series of controllers that contain PID controllers that were tuned using a mix of manual and ziegler-nichols methods.

Drawbacks

  • Only works for the specific plane i tuned the PIDs with, it does not work well with any plane with significantly different aerodynamics, resulting in oscillations or instability.
  • Only sets heading, ignoring track meaning it theoratically would not work for crosswind (although there is no wind in stock ksp)
  • Derotation sucks currently, it just lets the nose drop

Future improvements

  • impliment minimums and ability to go around
  • improve PID tuning method
  • make centralised spot where the plane performance parameters are stored, currently some of them are hardcoded

About

Autopilot for a plane in the game Kerbal Space Program using KRPC (Kerbal Remote Procedure Call)

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages