This is an autopilot i made for Kerbal Space Progam using KRPC. It can take off, climb, cruise, descend and land the plane autonomously.
- 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
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.
- 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
- 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