Here is Part 2!, It answers all your FAQ :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-b-hK5-4D5Rc.html Part 3 covers way more cool stuff! ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kFklbdU9eSQ.html&
Hi, this is a very informative video, thank you for sharing the link to the second part too. I am a student and I don't have the Simulink license so I wanted to know if I can directly use the FlightGear simulator only with MATLAB. My other query is, I want to simulate rocket trajectory so I wanted to know to what altitude does the FlightGear supports the simulation?
Hello, many thanks for this brilliant tutorial; is there any possibility to get the full detail of the diagram presented at 6'37 (either in slx file or by opening (in video) all elements?
When I run the bat-file it starts FG, but the window of work with the simulink model becomes unavailable, I can not start the simulation. What could it be? I'm using Matlab 2017b and FG 3.4.0. Thank you!
Hi all, I'm having trouble trying to get FlightGear to use the simulated data I generated in Matlab. My sh file runs, but FlightGear says "simulation paused". Any advice?
Hello! I can't to build scheme. I don't understand, where to find blocks "x", "h", "pitch". Could you explain hpw to build scheme and which characteristic did you chose in blocks?
Hi, regarding the .bat file code, what if I wish to keep the flight dynamics in flight gear? Do I simply remove '-fdm=null' or do I write something else instead? Similarly, if I wanted the aircraft to start on the ground, how do I change '--in-air'?
Try to adjust altitude to make it start on the ground, or simply change it to -ground. Let me know what works, haven't tried this myself unfortunately. You remove fdm-null, worked for me Although if you are running Simulink I strongly encourage you to disable the fdm
sir can u make the same video another time with detail because after some trobleshoot has happen.please do for all of us those who commemted below.it will be useful for so many members
Thanks,so great videos.But I want to ask you for help about the scenery in the FlightGear.The version I used :matlab2017b,FlightGear2017.1.When I set up my FlightGear with the airport KSFO,the interface of the Fligtgear is full of sea water and sky without terrain. But in the default condition at the ENBR airport ,it is normal and right. When I run the matlab and flightgear together,the plane can fly with the only terrain problem as I said.Do you know what is wrong with my flightgear? by the way ,the version 2017.3 flightgear is normal but matlab does not support.
Hello, i am trying to develop a rocket with a TVC control sistem for my final degree tessis and i am considering the "aerospace pack" with FlightGear simulation and the "siscape mechanics" pack, which also allow me to simulate. And I would like to ask if it is possible to upload my model to FlightGear as I can with simscape Mechanics. Thanks for all your videos, they sure help me a lot!
For anyone struggling, Christopher Lum has a more recent approach to linking Simulink and Flight Gear which is much easier and has actually worked for me. Leave the link here: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-f8tdTiuj5lo.html Don't mean to undermine this tutorial. VDEngineering is such a great and helpful channel, but this particular tutorial is much more up-to-date there.
sir, we are facing problem in connecting the maatlab simulink with flight gear .if possible please suggest the correct combination of matlab version and flight gearversion
Which version of MATLAB do you have? Please be specific, e.g. 2016a,2016b e 1)As soon as you open MATLAB, it mentions the version on the top left corner of the flash screen 2)Or, open MATLAB type in 'version'. Report back to me
Hi thank you for sharing this, I have to questions please, if I wan't to control the aircraft by the keyboard or a joystick, is it possible with the same options you chose ? if I want to run this simulink file with external mode so I can link the simulator with a hardware model , is flightgear compatible with external mode?
Yes, it works with third party flight simulators, You will have to use the 'Pilot Joystick' block in the Simulink Library Browser - Aerospace Blockset Regarding the keyboard, I'm not sure, it might work. Watch my old video on connecting joysticks to MATLAB, ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-A7KkciHn0jc.html
thanks a lot for responding I have a robot that is connected to simulink using arduino , thats require external mode on simulink, is it compatible with flight gear? Is joystick compatible with external mode?
I'm not sure about what external mode your talking about. Compatible with flight gear? Yes The only 'external mode', is that Pilot joystick block in Simulink Browser. Watch my other video for a detailed explanation.
whenever an arduino is connected to matlab you have to switch the simulation mode from normal to external so the hardware board are arduino if i am going to use arduino and joystick at the same time what board should I use? I mean in the configuration parameters should I choose ardino or joystick? and in the simulation mode, does the joystick work when the external mode is on ??
Iam making a simulation of NASA space shuttle using Matlab Simulink with Flightgear Simulator. Iam Using Matlab R2016b and Flightgear 2016.1.1 and the first time i simulate it i got undefined variable for pitch, DR but i know that first i must run the shuttle model m file then i have to run the run first m file this will make pitch, DR have values from the excel so i solved this problem but after that i have the problem in the fifth picture. Iam a chemical engineering student in a bachelor project so i dont know so much about simulink and aerodynamics. I want a quick reply to solve this error and thanks. my ERROR is: The 'Vector of input values' in block 'model/h' must be a real vector that contains at least two elements Component:Simulink | Category:Modelerror The 'Vector of input values' in block 'model/pitch' must be a real vector that contains at least two elements Component:Simulink | Category:Modelerror The 'Vector of input values' in block 'model/x' must be a real vector that contains at least two elements
Hey, Can you tell me how to add other variant subsystem in existing model when already a subsystem is working. I want to change Simulink 3D visualization to FlightGear visualization in my block diagram under visualization subsystem.
Your videos have been very helpful for me, but I am having some problems with setting things up. Would it be possible for you to help me? I tried setting up a flight path similar to what you did here and connected it to FlightGear. But when I ran it, the aircraft did not move. Though something that I did different, was that I used the hl20 model.
Check your batch file Maybe you did not connect the output mux block to the FlightGear sim block. Are you able to run the simulation in MATLAB without FG?
The mux block is connected to the sim block, I tried copying the setup you have as close as possible. The MATLAB simulation does run, but when I used scopes to see the latitude, longitude, and altitude coming out of the FE to LLA block, lat/long do not change while altitude does. But also when I ran FlightGear from it, I noticed that after I entered in dos('runfg.bat') FlightGear would start and the simulation would load in, but the Command Window never brings up the >> for the next command.
Actually, I found out that the lat and long were changing, but by a very small amount. I believe the only issue is that the >> never comes back up, which makes me think there's some sort of loop, or error that's preventing it from completing.
I found a way to get the simulation to run with FlightGear, but when I do, the terrain suddenly disappears, and the aircraft floats in space. Would it be possible to get the simulink architecture you used in this demonstration? I would like to look through it to make certain I am doing things right.
Oh that problem is due to your latitude and longitude, they are written in opposite form, if you check or enable the HUD it should tell you. That happened to be before as well. Also check that you first installed scenery. The default FG only comes with San Francisco Bay Area. P.S. My architecture is the exact same as what's in the video!