![]() If you have Python 3 as your default, perhaps in a virtual environment, you can just type python. The 'telnet' bit opens a server port for us to access and manipulate the simulator data - this is the back door for Python.Īll the Python code in this tutorial needs Python 3.x, hence all the examples are shown to be run using the python3 command. Otherwise FlightGear uses the real time at the simulated location - and it's dark in Hawaii. The 'timeofday' bit ensures you have daylight. The 'aircraft' but selects the Allegro-2000 with wheels and the 'fg-aircraft' tells FlightGear where to find it. You could install it anywhere, but I recommend putting it in your new control_tutorial folder:įgfs -aircraft=allegroW -fg-aircraft= -timeofday=morning -telnet=5051 Instead, we'll use an add-on aircraft that is easy to fly and easy to customize: the Allegro 2000 (wheeled version). The default aircraft models in FlightGear all have fancy autopilots that are hard to mess around with. Python FlightGear InterfaceĬlone this repository somewhere on your PC: git clone The Allegro 2000 Aircraft Time for a cup of tea: it's quite a big install. Install FlightGear using sudo apt install flightgear. ![]() See also the instruction video on Youtube. ![]() We will implement those programs in Python, using a custom interface class provided in this project. Job of representing the aircraft dynamics, and provides an easy back door for interfacing with external programs. We'll use FlightGear as its free, makes a good We're using aircraft as a case study for control because the dynamics responses are interesting but,įor the trainer aircraft we'll experiment with, quite forgiving. This is the Linux version! See also the Windows version.Ĭontrol tutorial examples using FlightGear simulator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |