3 ms·
For the hackers around here: There is a plug-in by NASA called "XPlaneConnect", that allows you to control aircraft in X-Plane from code See here: https://githu
by t0mas88 2y ago
For the hackers around here: There is a plug-in by NASA called "XPlaneConnect", that allows you to control aircraft in X-Plane from code See here: https://github.com/nasa/XPlaneConnect https://github.com/nasa/XPlaneConnect
I've used it to write some Python code that mimics upset recovery procedures that we teach human pilots. It's quite fun putting an aircraft in a tricky position and then seeing your code recover it nicely to straight and level flight. (Or seeing your code roll it over and fly it into the ground if you got the math wrong :-))
- disposedtrolley 2y agoI wrote a rudimentary autopilot in Go that used a Kalman filter to maintain straight and level flight. It was a fun exercise!
- auspiv 2y agoAnd I wrote one in Python to climb/turn as well! And to navigate to any of the built-in X-Plane navaids - https://austinsnerdythings.com/2024/04/06/adding-track-following-direct-to-with-cross-track-error-to-the-python-x-plane-autopilot/ https://austinsnerdythings.com/2024/04/06/adding-track-follo... and the first post in the series - https://austinsnerdythings.com/2021/10/15/creating-an-autopilot-in-x-plane-using-python-part-1/ https://austinsnerdythings.com/2021/10/15/creating-an-autopi...
- MPSimmons 2y agoI did a similar thing in Kerbal Space Program using krpc (though less for human training and more for fun) - https://github.com/standaloneSA/krpc_state_machine/tree/master https://github.com/standaloneSA/krpc_state_machine/tree/mast...
- cashsterling 2y agoAt a startup I worked at, we had our adaptive control pilot software flying our drone designs in XPlane for testing and demo purposes.