Тёмный
No video :(

Create Your Own Flight Simulations with Python and FlightGear | A Complete Guide! 

VDEngineering
Подписаться 30 тыс.
Просмотров 7 тыс.
50% 1

Resources:
~~ Connect FlightGear to Python: pypi.org/proje...
~~ Download FlightGear: www.flightgear...
~~ FlightGear and Python Examples: flightgear-pyt...
~~ Connecting Matlab and Simulink to FlightGear (Parts 1 to 3):
• How To Connect MATLAB ...
• Connecting MATLAB & Si...
• Connecting MATLAB & Si...
Learn how to connect and send aircraft data from variables within a Python script (e.g.: position, orientation and control surface information) to FlightGear (Windows / macOS) to build custom high fidelity flight simulations from scratch!
This will be of use if you're interested in building your own algorithms and visualizing them using open source software.
Similarly how Matlab and Simulink connects to FlightGear, Python does the same via a UDP connection. Moreover you can also send data in reverse from FlightGear to Python. You can transmit and receive data between FG / Python simultaneously. This would be required when designing your own autopilot using the build in flight dynamic models in FG.
Instead of running the Python script from the IDE, you can directly run it from the terminal. This will improve performance. On my Windows 10 machine I was having trouble using Spyder, however using the command prompt fixed this issue.
Thanks for watching!
~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
www.udemy.com/...
~~Contact Me: www.vinayakd.com/
~~Instagram: / vinayak_desh

Опубликовано:

 

28 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@VDEngineering
@VDEngineering 8 месяцев назад
Update at 20:32 : You don't need to have your IDE open when running the Python script, just run it from the terminal. This way, you can have FlightGear running in the background and do not need to restart it each time. In addition the performance will increase as less RAM is used. On Windows machines, using Spyder may result in an error in the multiprocessing module. Using the terminal gets rid of this error.
@IvanEng747
@IvanEng747 2 месяца назад
I use pycharm. I run the example simple_fdm, several times everything works fine. In pycharm the script is launched, and in flightgear the plane moves. But after some time the script does not stop working. I click end script or even close pycharm, and in flightgear the plane also rotates. Even when I restart flygear, the script still works. Only reboot helps. Perhaps the UDP connection somehow gets blocked and freezes. Could you tell me what this is? It is also interesting to see the code of your examples; not all of them are in the archive of the flightgear python library. Thank you.
@mayuradeshpande8832
@mayuradeshpande8832 Месяц назад
Such a complicated subject explained in a clear simple way. It's awesome great job.
@davidbishop3521
@davidbishop3521 10 дней назад
I applaud your effort to teach us, your intellect and your english. Real class act
@ardag1439
@ardag1439 9 месяцев назад
Being able to program FDM directly on Python is incredible, thank you.
@Shkvarka
@Shkvarka 22 часа назад
could you explain why would you do it if there are two FDMs already implemented in FlightGear?
@user-so3hv4qz3p
@user-so3hv4qz3p 2 месяца назад
Thank you very much for such an amazing explanation! This is powerful stuff!
@universo_desconocido
@universo_desconocido 7 месяцев назад
Awesome! I would love to see some programmed manouvers of yours for more examples!
@habahabahabahabahaba
@habahabahabahabahaba 9 месяцев назад
Thank you veru much, this was very helpful. Most of these aerospace applications are matlab only, but i cant afford matlab. Thank you very much for the tutorial
@Pt-kn4zt
@Pt-kn4zt 8 месяцев назад
Bro can you do a an analysis of how gps guided artillery rockets would work guidance and control wise? Name the title something funny like “how to build a Himars rocket” you’ll get good views 😂
@rahuldebdas2374
@rahuldebdas2374 12 дней назад
Hi, very nice walk through. Can I have your python code and the data sets please?
@Joao-fn3zy
@Joao-fn3zy 6 месяцев назад
Is there any way I can make a simulator using Python and FlightGear? Myself providing equations and calculations?
@alphaomega154
@alphaomega154 7 месяцев назад
some of the authors of the custom planes, like the F15, F14 and the A10 should have the standard HUD mode exist in the chain cycle of the HUD option when people pressing the "H" key. in some of those plane, the authors only include the proprietary HUD that would be on the real world version of the HUD, which is minus the power/throttle gauge, and the rudder indicator. i mean its a frickin video game, and not all people who download it has a complete flight control setup. most simply experiment using mouse and keyboards or gamepad. and its hard if you cant tell where the rudder is facing, or how much throttle is open. and the game hasnt been updated for a long time. im sure the authors of those custom planes dont even touch the installation anymmore for years. the custom helos are messed up. its easier to fly real helos than those in the game. helos dont go tumbling around like that on idle. its crazy. by the way, whoever worked on the F35 plane in the game although it is lack of polishing, but all the mechanism is ON POINT. thats how F35B takes off and landing. its not a VTOL. its just a STOL. that one plane is well done. though rough.
@netx421
@netx421 Месяц назад
Bro did I see you on FG? I was flying a Robinson 22 and you said you were in a gyro that could fly at mach 6.
@vdengineering2666
@vdengineering2666 13 дней назад
No
@etzaiat3024
@etzaiat3024 5 месяцев назад
So interesting
@khanhphaminh1175
@khanhphaminh1175 9 месяцев назад
I didn't know I need this but I like it!
@_acharya_karthik
@_acharya_karthik 4 месяца назад
helloo sir we wanr some help for project work
Далее
Rating My FAN'S Flight Simulator Setups
9:49
Просмотров 286 тыс.
Why Linux Is Better For Programming
13:32
Просмотров 2,8 млн
журавли в пятницу
00:14
Просмотров 57 тыс.
A new way to generate worlds (stitched WFC)
10:51
Просмотров 526 тыс.
How Fast can Python Parse 1 Billion Rows of Data?
16:31
How I make science animations
43:39
Просмотров 720 тыс.
I Survived 100 Days Of Hardcore Minecraft!
15:37
Просмотров 122 млн
How Games Have Worked for 30 Years to Do Less Work
23:40