Live data from Hacker News

Creating an autopilot in X-Plane using Python

austinsnerdythings.com

1–10 of 34 posts

Re: Creating an autopilot in X-Plane using Python

#2
The Connect API for X-plane is a great toy. I wrote a "recover from upset" script some years ago after having a discussion on the best methods for upset recovery by human pilots. You can easily implement something that does what a human would do and then compare other options that may be possible.

The one thing that does make it a bit "easy mode" is that all data is clean and exactly as you would expect mathematically. While real input data for avionics is more noisy and has several types of sensor errors.

Re: Creating an autopilot in X-Plane using Python

#10
You can also do this for Kerbal Space Program using the kRPC mod: https://forum.kerbalspaceprogram.com/topic/130742-18x-to-112.... It's a much less polished experience, but you get more of the experience of an actual avionics/robotics project doing it this way - multiple sensors that may not necessarily agree with each other (for example, IIRC accelerometers installed at different ends of the ship will register different readings!), you have to be quite a bit more careful when interfacing with engines and may not have access to a simple "go left" control input, you have to deal with whatever nightmare vehicle you built that you need a computer to handle, that kind of thing.
Post reply on HN