Live data from Hacker News

Creating an autopilot in X-Plane using Python

austinsnerdythings.com

31–34 of 34 posts

Re: Creating an autopilot in X-Plane using Python

#31
post #23

if you want more than just an autopilot I have a almost all 747 400 systems modelled in lua open sourced for xplane 12 at https://github.com/mSparks43/747-400 CBTs linked in an issues milestone.

> CBTs I wasn't familiar with what that acronym meant in the context of X-Plane but it seems to be "Computer Based Training", and after watching one of them I'm thankful for the 2x playback rate on youtube because whew

Airlines call them CBT as well, although it's really "iPad based training" at most airlines.

For flight sim hobby you can definitely watch CBT at 2x speed and just grasp a high level view on what buttons to press. But for real world flying you need the level of detail you see in CBT.

For example you really want to know what happens when you loose specific hydraulics systems and how things like accumulators can affect that. Because it could be that you only have the brakes work for a few applications (using accumulator pressure). Definitely not a good idea to taxi after landing like that.

Re: Creating an autopilot in X-Plane using Python

#32
post #19

I have been wanting to play around with drone swarm simulated behavior, does anyone know of a sim that would let me do something like this with 10 or so drones?

How about https://github.com/utiasDSL/gym-pybullet-drones

Thank you this looks like a great place to start!

Re: Creating an autopilot in X-Plane using Python

#33
post #16
post #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 mathematicall…

The numbers coming from X-Plane are indeed super "clean" and very mathematically expected. No lag on VSI, etc

It should be easy to inject some lag and noise on the plugin end if you want to simulate that, no?
Post reply on HN