Guidance, Navigation and Control System Design - Matlab / Simulink / FlightGear Tutorial

Sdílet
Vložit
  • čas přidán 24. 07. 2024
  • Model: github.com/Vinayak-D/GNCAirst...
    In this video you will learn how to build a complete guidance, navigation and control (GNC) system for a rocket / missile which is commanded to reach a specified target starting from a random initial position, by using LQR /LQG and Kalman filtering methods for control and estimation. You will learn
    1) How to calculate azimuth, latitude, and longitudes
    2) Calculate guidance commands, range, miss distance, elevation
    3) Design Linear Quadratic Regulator / Gaussian (LQR) for a 2d state space model
    4) Build a 3-DOF Simulation with the Aerospace Blockset provided within Simulink
    5) Perform simulation with FlightGear
    TIMESTAMPS:
    Theory: 00:50
    Matlab Code: 06:00
    Simulink Model (Control): 10:05
    Simulink Model (Guidance, Navigation): 17:13
    Guidance Command Calculation: 19:30
    Simulation: 22:02
    Conclusion: 25:10
    RESOURCES:
    Run Simulink in real time (Pacer): www.mathworks.com/matlabcentr...
    Raytheon Paper: www.researchgate.net/profile/...
    MATLAB & Simulink Tutorials Playlist: • MATLAB & Simulink Tuto... ]
    Thanks for watching!
    ~~My Udemy Courses on Motion Planning / Navigation / Trajectory Planning:
    www.udemy.com/course/autonomo...
    My Instagram: / vinayak_desh
    My Website: www.vinayakd.com/
  • Věda a technologie

Komentáře • 169

  • @VDEngineering
    @VDEngineering  Před 3 lety +15

    Thank you all for the 500+ likes: You can now find the model in the link in the comments

    • @rohanwallace1858
      @rohanwallace1858 Před 3 lety

      i realize Im pretty randomly asking but does anyone know a good website to watch newly released movies online?

    • @maverickpierce3090
      @maverickpierce3090 Před 3 lety

      @Rohan Wallace Try Flixzone. Just google for it =)

    • @hayesdayton2043
      @hayesdayton2043 Před 3 lety

      @Maverick Pierce Definitely, have been watching on flixzone for months myself :D

    • @rohanwallace1858
      @rohanwallace1858 Před 3 lety

      @Maverick Pierce Thanks, I signed up and it seems to work =) I really appreciate it !!

    • @maverickpierce3090
      @maverickpierce3090 Před 3 lety

      @Rohan Wallace You are welcome =)

  • @edenyanko9521
    @edenyanko9521 Před 3 lety +6

    a compact explanation of such a huge theory. It's wonderful !

  • @dimitridovgan6364
    @dimitridovgan6364 Před 3 lety +7

    As always great content! Thank you very much for spending your free time explaining us such interesting things!

  • @alih5048
    @alih5048 Před 3 měsíci +1

    First time seeing a real practical dynamic model of a system being extracted and subjected to control, very useful.

  • @MadSolarV2
    @MadSolarV2 Před rokem +2

    Just wanted to say thank you for putting together this video, very inspiring as a student to see what you're able to do.

  • @gravityguru1
    @gravityguru1 Před 3 lety +11

    Mr. Vinayak, You are the Ganapati Bappa of My life..Saviour...

  • @byronnielsen8896
    @byronnielsen8896 Před 3 lety +2

    Love your content, dude! Super interesting stuff! PS: You're helping me a lot with my paper on quad control systems - thanks so much!

  • @manishpingale6558
    @manishpingale6558 Před 3 lety +3

    PLEASE DONT STOP MAKING SUCH AWESOME VIDEOS

  • @Tamingshih
    @Tamingshih Před rokem

    Really enjoy the model construction process in the demo, Thanks!

  • @RK-jl8co
    @RK-jl8co Před 3 lety +1

    Your lectures / classes are very interesting

  • @nabill120
    @nabill120 Před 3 lety

    Thank you very much for the video. I have learned a lot.

  • @Daniboy370
    @Daniboy370 Před 6 měsíci +2

    You sir are talented af 🤙

  • @emresayn4057
    @emresayn4057 Před 3 lety +1

    So cool, thanks for sharing this work!

  • @mesta3329
    @mesta3329 Před měsícem

    Very interesting Thank u, Math part just passed above my head.

  • @alexandrpetrov1110
    @alexandrpetrov1110 Před 3 lety

    Thank your very very march! Amazing, just amazing, thank you so much

  • @ichigoduzumaki3150
    @ichigoduzumaki3150 Před 3 lety

    Really helpful sir
    Very informative

  • @fastlane042
    @fastlane042 Před rokem

    Great video sir!! Thank you very much

  • @bbrother92
    @bbrother92 Před 7 měsíci +9

    hello i am from Iran, thank you for your video, now we making big boom rocket, thank you

  • @ArunKumar-nq7en
    @ArunKumar-nq7en Před 3 lety

    Hey Brother ,
    Thats Awwwsome ! Keep it up !

  • @shalipse
    @shalipse Před 2 lety

    Brilliant!! Thanks for sharing

  • @manishpingale6558
    @manishpingale6558 Před 3 lety

    THANK YOU SO MUCH
    YOUR CHANNEL IS SO UNDERRATED I AM GOING TO SUBSCRIBE TO YOUR CHANNEL USING ALL OF MY DEVICES

  • @Buyson
    @Buyson Před 2 lety

    Great video, thank you.

  • @ad2181
    @ad2181 Před 3 lety

    Excellent explanation.

  • @lioneldongmofouellefack1460

    Awesome! thanks for sharing

  • @SamRao
    @SamRao Před 3 lety +1

    Great content. This can be simplified a whole lot more using the Navigation Toolbox and Sensor Fusion and Tracking Toolbox.

    • @VDEngineering
      @VDEngineering  Před 3 lety +5

      Yes, however the goal was to explain the theory in detail, for a complete understanding. In a work setting, the engineer would use the toolbox however he/she must tune it perfectly and use the appropriate initial conditions and parameters!

    • @AjayGachu
      @AjayGachu Před 2 lety

      @@VDEngineering This. Thanks for doing it.

  • @alixilviashah7166
    @alixilviashah7166 Před rokem

    Excellent job VD Engineering

  • @rakesh9800
    @rakesh9800 Před 10 měsíci

    Found this masterpiece ❤

  • @riyagujarathi4479
    @riyagujarathi4479 Před 3 lety

    OMG! The best video ever!

  • @anandhugopi1151
    @anandhugopi1151 Před 7 měsíci +1

    super content anna

  • @10163me
    @10163me Před 3 lety

    Great video

  • @issammassoudi8503
    @issammassoudi8503 Před 2 lety

    thx bro this is very interesting

  • @kaikecastro1969
    @kaikecastro1969 Před 3 lety

    Hi, Amazing video !!! Thanks !! Do Can you nominate content for the rocket's roll control?

  • @enestutkun2524
    @enestutkun2524 Před 3 lety +1

    thank you for sharing this friend

  • @aaronpurcell-cox51
    @aaronpurcell-cox51 Před 3 lety +3

    I very much enjoyed this video! Although it took me a while, I was eventually able to get a valid result using this method! However, there is something crucial that stumped me for a while. At 19:24 in the video, you enter the earth's radius in Km. I followed along (not thinking too much of it) and I kept getting invalid results for example I would get a warning flag from the start. But then when I worked back through the model/code and did a bit of manual calculation I found that using the Haversine formula you spoke about, my horizontal distance was ridiculously small, hence why I was getting a warning flag from the beginning of the simulation. So I used meters rather than Kilometres and this fixed the issues I was having.
    Although I will say, that troubleshooting this problem really did aid my understanding of the full system! So there is a bright side haha.
    By the way, if what I have said is incorrect, please do let me know. I always like to learn even if it means I am wrong.
    TLDR: If you are following along and getting invalid results make sure you use meters for the earth's radius (at 19:24) and not kilometres.

    • @VDEngineering
      @VDEngineering  Před 3 lety +2

      Oops, my bad, glad you got it working!

    • @sampiko9697
      @sampiko9697 Před 3 lety

      The earth’s radius is in meters , he put e3. I’m still unable to get valid results. Wondering where I made mistakes.

    • @ucontrolchannel5967
      @ucontrolchannel5967 Před 3 lety

      @@sampiko9697 In matlab function define R=6371e3, not R=6.371e3

    • @swapnilkanade3917
      @swapnilkanade3917 Před 3 lety

      @VDEngineering Is it fixed type or variable type solver used ...I tried it but not getting results..as changed R in meters ...
      Can u suggest ??

    • @adrianjeromegujilde3011
      @adrianjeromegujilde3011 Před 3 lety

      i can relate to what you encountered... blessing in disguise. haha

  • @dariusm_
    @dariusm_ Před 3 lety

    Do you have any books you recommend for GN&C?

  • @hermitking3718
    @hermitking3718 Před 9 měsíci

    Great work

  • @ahmetfarukgumustas6836

    Perfect ...

  • @abdelnasiralnaqbi2801
    @abdelnasiralnaqbi2801 Před 3 lety

    You are amazing

  • @rickmonarch4552
    @rickmonarch4552 Před 2 lety

    what kind of application would be useful for people who deal with control systems that computes in the cloud?
    Can you please help what kind of functionalities would be useful?

  • @ilyasbendjeffal9758
    @ilyasbendjeffal9758 Před 2 lety

    Can this model fit for amateur rocket model with static TVC control I'm doing a master degree "tvc control with linear and non linear commands"

  • @moustafarefaat6155
    @moustafarefaat6155 Před 2 lety

    how does simulink identify or the Implementation of hardware boards types or does it only support a certain boards ?

  • @ApplegateA
    @ApplegateA Před rokem

    Awesome

  • @mariadelcarmenrodriguezlin4621

    thanks for this

  • @KaiDidumaNx
    @KaiDidumaNx Před měsícem

    Wow. Nice

  • @emmynrugambage
    @emmynrugambage Před rokem

    Thanks a bunch for the great work and nice content. would you mind do a video and share the model running (visualization of the same model) with x-plane10. thanks

  • @datvuong7420
    @datvuong7420 Před 3 lety

    Could we animate two independent moving object in one animation? The data flight of two moving objects are imported from Simulink/Matlab.

  • @moustafarefaat6155
    @moustafarefaat6155 Před 2 lety

    thank bro very much but Question this model does not include internal chips types of sensors used or any schematics right its not finished project its for learning the principals only right ?

  • @zakzqk8485
    @zakzqk8485 Před 9 měsíci +1

    Hi vinayak amazing work . Can you tell me why the missile missed . You said it's the noise but you used kalman filter to filter out the noise

  • @enzezan166
    @enzezan166 Před rokem

    hi,how could l upload this missile scenery into flightgear software?(where can l download this scenery?)...thank you very much if anyone could reply to me...

  • @ashwinsivakumar2742
    @ashwinsivakumar2742 Před 3 lety

    while implementing the guidance model; x and z are they given in terms of theta or gamma? 'cause the formula you showed mentions theta, but your simulink diagram taps gamma.
    Thank you so much for the effort put in.

    • @VDEngineering
      @VDEngineering  Před 3 lety

      Hey, so the true formula is gamma yes, that was a typo. However, if you run this simulation you'll notice that angle of attack stays at 0, which means theta ~= gamma, (because Az ~= 0), so either will give you the same result. Thanks for spotting that!

  • @atultripathi9311
    @atultripathi9311 Před 3 lety +2

    Please make a whole video series from basics to use aerospace blockset of MATLAB and simulink

    • @VDEngineering
      @VDEngineering  Před 3 lety +2

      Here, these 2 cover most things you need to know
      czcams.com/video/X_dGm1mhHsM/video.html&ab_channel=VDEngineering
      czcams.com/video/UdJ0LAkIDqk/video.html&ab_channel=VDEngineering

  • @rezamagham4495
    @rezamagham4495 Před 2 lety

    Thanks

  • @aymanekouidri9701
    @aymanekouidri9701 Před 3 měsíci

    Hello and thank you for the video. Can you program a radar that detects moving targets in Alma Talab? Please

  • @kmr416
    @kmr416 Před 3 lety

    Vin, is it possible to do staging, fairing separation, etc... of a rocket with flight gear and simulink???

    • @VDEngineering
      @VDEngineering  Před 3 lety +1

      No, however with Simulink 3D animation it is possible

  • @louies6914
    @louies6914 Před 3 lety +2

    Can you make a video about missile interception? [ like a Patriot missile intercepting a SCUD ballistic missile(predictable trajectory for SCUD ) ].

    • @datvuong7420
      @datvuong7420 Před 3 lety

      yeah, I want to do so. Could we animate two independent moving object in one animation? The data flight of two moving objects are imported from Simulink/Matlab.

  • @them8tysibulba
    @them8tysibulba Před 3 lety

    Great video, one question though: The formula for the flightpatheangle gamma = theta - alpha is correct, but then the picture beneath is labeled incorrectly (swap theta for gamma), or am I mistaking?

  • @dimitris.159
    @dimitris.159 Před 3 lety

    Hey Vinayak, I am currently working on a project where I have to connect FG to Matlab/ Simulink. Your videos have been pretty helpful so far, but I was wondering if you have ever tried to connect two instances of FG to the same Simulink model to perform simultanous flight trajectories of two planes via FG Multiplayer mode. The problem I have is about the communication between the two FG instances since there is always a "jitter" in the visualization instead of a fluent movement. I would be really happy for any advice! Other than that: Keep it up! Your videos are great!

    • @VDEngineering
      @VDEngineering  Před 3 lety +1

      Not sure how to do that yet

    • @dimitris.159
      @dimitris.159 Před 3 lety

      @@VDEngineering Ok, however thanks for answering. However if you ever have to deal with that problem I would be thankful for any advice or video.

  • @user-rr8vj3uy4f
    @user-rr8vj3uy4f Před 2 lety

    4:33. i thinks gama should be eaual to theta plus alph. am i right?

  • @Francisco-cz1kg
    @Francisco-cz1kg Před 2 lety

    How you define the blast zone?

  • @sumanthdevaki6884
    @sumanthdevaki6884 Před 3 lety

    Can u send model.m file like u have sent for steering control..

  • @debojeetchatterjee3221
    @debojeetchatterjee3221 Před 3 lety +1

    Hello brother. I'm a a big fan of your stuff. I actually graduated with Aerospace engineering bachelors in India this summer. And applying for masters in Canada. I'm very much struggling to learn proper Matlab. Can you please suggest me where can I master matlab from? Thank you :)

  • @thomasshelby192
    @thomasshelby192 Před 3 lety

    amazing work, do you recommend any books about GN&C ? I want to start learning about it even though I am in the field of materials and wind energy cause I think GN&C is very interesting field even though at first I really found it awfull due to programming haha but now not so much

    • @VDEngineering
      @VDEngineering  Před 3 lety +2

      It's a very broad applied field so there isn't any book specific to this. The best one which gives a good intro is Aircraft Control and Simulation by Eric Johnson.

    • @thomasshelby192
      @thomasshelby192 Před 3 lety

      @@VDEngineering Great , thanks a lot !

  • @demoaccount2392
    @demoaccount2392 Před 2 lety +1

    Where to code this, I mean in what hardware or something. I know nothing about this topic and I want to know please help ☺

  • @bishalrout7401
    @bishalrout7401 Před 3 lety

    Sir shall u please send me the code and simulation because in me it have some error so i cant able to rectify it please help me

  • @youssefaltaher3155
    @youssefaltaher3155 Před 8 měsíci

    how to do that using model predicative control?

  • @jeevankarthik5017
    @jeevankarthik5017 Před 7 měsíci

    Hi can I use the same concept for aircraft error dynamics simulation? In cruise flight

  • @felipemessias9602
    @felipemessias9602 Před 3 lety

    Excellent!

  • @aniketpatra4474
    @aniketpatra4474 Před 2 lety

    Hi , excellent video, can you please tell me how to calculate the Y coordinates also? It will be a big help. Thanks in advance

  • @andrewnone5389
    @andrewnone5389 Před měsícem

    Can you help me? I cannot find aircraft model HL21 for FlightGear simulation. Where can I download it? Or can you share it with me?

  • @yassinalielouahed5607

    the python5 missile does crazy things we cannot simulate by matlab , but how?

  • @mintus179
    @mintus179 Před 10 měsíci

    Can you share file Simulink connect to Flight gear and file .bat for this project please? Thank you so much

  • @appuzworld9930
    @appuzworld9930 Před rokem

    Good

  • @swapnilkanade3917
    @swapnilkanade3917 Před 3 lety

    Hello vinayak sir..
    I want to learn realtime simulation..
    How u did in this ?..can u explain me plz...
    I don't know how to start real time..
    i gone through some web search but unable to do that...
    Thank you

    • @VDEngineering
      @VDEngineering  Před 3 lety

      I don't know it myself yet. Need simulink real time

  • @shovonshovon9003
    @shovonshovon9003 Před 7 měsíci

    15:51 How to further add those in and out blocks in the main subsystem? 😮‍💨 I'm stuck here 😓

  • @ramazzam4089
    @ramazzam4089 Před měsícem +3

    is there any step that he didn't show in the video because it's not working

    • @Earther-uf6qz
      @Earther-uf6qz Před měsícem +1

      If u followed all steps then u r capable to find out urself

  • @ramazzam4089
    @ramazzam4089 Před měsícem

    where can i find the model
    i tried to make it myself but it's not working

  • @vpni2043
    @vpni2043 Před měsícem

    Hello! Thanks for the vid! I want to implement Kalman filter on inertial navigation system. Can I contact you for help please?

  • @lalitdeshmukh8665
    @lalitdeshmukh8665 Před 3 lety

    hey vd can you suggest some books to learn GN&C and simulink modeling .

  • @junekwon8873
    @junekwon8873 Před 3 lety +1

    Very interesting and amazing video. Just took a quick look of the video.
    How did you get your input (reference (distance from ground data)) into your simulink model?
    In other words, how did you connect the simulink and google map?
    If you already mentioned that in the video please let me know thanks!

    • @VDEngineering
      @VDEngineering  Před 3 lety

      Hello, they are not connected. I did it separately

  • @supermen7523
    @supermen7523 Před rokem

    Excuse me, sir, I'm a newbie so I could miss something. But is it okay that the simulation doesn't work if the rocket and the target are too far away from each other? I mean, it misses completely if the distance is too much.

  • @nikitvhatkar1214
    @nikitvhatkar1214 Před 3 lety

    Vinayak sir can you tell which book is best for MATLAB for Aerospace

  • @shadyzahran3330
    @shadyzahran3330 Před 3 lety +1

    Thanks For the video, but the github is empty where is the code?

  • @sadettinbalcan1769
    @sadettinbalcan1769 Před 3 lety +1

    Could you make a video serie about 6 degree of UAVs simulation step by step?

  • @souravkumarnath
    @souravkumarnath Před 3 lety

    Can you say , what is your system configuration ?
    Meanwhile which processors, RAM, graphics card you use ?

    • @VDEngineering
      @VDEngineering  Před 3 lety +1

      I have this laptop: MSI GP72-2QE leopard pro

  • @fratmehmetoglu8674
    @fratmehmetoglu8674 Před 3 lety

    Could you tell us how to go to flightGear in order to simulate this model?

  • @aswinrb
    @aswinrb Před 3 lety

    Hii, i found ur videos very interesting. Is it possible if u could simulation in autonomous parafoil.

    • @VDEngineering
      @VDEngineering  Před 3 lety

      I don't know what that is

    • @aswinrb
      @aswinrb Před 3 lety

      @@VDEngineering its a parachute that can be controlled autonomously. If u cud do some simulation related to that i will be very helpful.

    • @aswinrb
      @aswinrb Před 3 lety

      @@VDEngineering it will be helpful if possible to model a parachute based on eqn of motion

  • @_acharya_karthik
    @_acharya_karthik Před 3 měsíci

    heloo sir my name Karthik I want help project work we working project like 3D forward looking sonar for surface platform and UUVs we want build stimulik or matlab code

  • @RK-jl8co
    @RK-jl8co Před 3 lety

    I need some flight simulation for rocket or missile launching

  • @thomassherif7797
    @thomassherif7797 Před 3 měsíci

    How about another one where you use pronav. That will be fun.

  • @balkrishanmahabir7982
    @balkrishanmahabir7982 Před 3 lety

    Hello Vinayak I am die hard fan of yours, kindly reply us, or tell us how, we can interact with you and ask question Vinayak

  • @nihalsingh6419
    @nihalsingh6419 Před 3 lety

    Sir I am getting error at matrix multiply X_hat *K
    Please please help

    • @VDEngineering
      @VDEngineering  Před 3 lety

      Tomorrow I will upload this file to GitHub

    • @nihalsingh6419
      @nihalsingh6419 Před 3 lety

      @@VDEngineering ok sir just please add the link of uploaded code here. please........

  • @mohammadhassankassem8873

    what if the target is moving? what shell we do?

  • @nihalsingh6419
    @nihalsingh6419 Před 3 lety

    Why so hurry vinayak bro . Your video is very much fast.
    Your content are incredible
    Please keep the pace of your video slow

  • @amygdalabrains2855
    @amygdalabrains2855 Před 3 lety

    Sir what type of guidance are you implementing in this? Thank you for the response :)

  • @nokeli70m38
    @nokeli70m38 Před 2 lety

    Can you send me the simulation file?

  • @CrisMadla
    @CrisMadla Před 3 lety +1

    What stage of your education did you learn this stuff?

    • @VDEngineering
      @VDEngineering  Před 3 lety

      Undergraduate degree final year

    • @CrisMadla
      @CrisMadla Před 3 lety

      @@VDEngineering Ahh I'm in my final year Mech. Eng but, I have course specifically on embedded controls like this after the basic controls but I'd doesn't look like my coursework will ever go in to practical applications in Simulink. My uni is very theory based. Thanks for uploading these videos, I'll think I'll try em out later one if I never have free time lol.

    • @VDEngineering
      @VDEngineering  Před 3 lety +1

      I didn't learn at school. I just taught myself.

  • @safatkhan6839
    @safatkhan6839 Před 3 lety +1

    Thanks for sharing your vids. I think you cover A LOT of VERY interesting topics. However, the reason it's difficult to follow your content is because it always feels like you cram in 5 hours of content into a 20 mins video. As such, if one already was way too familiar with what it is that you are doing, they'd benefit from the quick demonstration. But for those who aren't already very familiar, it doesn't really teach them all that much. But it must take a lot of effort to put all these together. Thanks for taking the time out to do this anyway.

    • @VDEngineering
      @VDEngineering  Před 3 lety +2

      I know, If I had the time to make longer videos I would, I work full time whilst attending school. I also believe most people will get bored watching a 5 hour video, so my channel views will drop and ratings will go down, hope you understand.

    • @safatkhan6839
      @safatkhan6839 Před 3 lety +2

      @@VDEngineering LMAO! I would never expect a 5 hour long video. That'd be a terrible idea. What I was suggesting is more like the Control Bootcamp series by Steve Brunton. The individual videos in the series are 10-20 mins each. But the total content is 10 hours+. The way you do it seems more like a 20 mins technical presentation on a project.
      Whatever the case maybe, thank you very much for finding any time to do this. I am already surprised that you even found any time for this considering your studies and work obligations must be very time consuming and stressful.

    • @rogeronslow1498
      @rogeronslow1498 Před 3 lety +1

      @@VDEngineering Fascinating video but your pace is lightning fast. I would need to pause and check and pause again to think. Well done.

  • @vinayarimilli7651
    @vinayarimilli7651 Před 3 lety

    This video assumes AOA to be zero when the relation between Velocity and body axes is determined, That's not very accurate as the actual body dynamics are not getting included, it's a good video overall

    • @VDEngineering
      @VDEngineering  Před 3 lety

      Yes small angles, I have to keep everything explanable within 25-30mins

  • @t.bo.a7061
    @t.bo.a7061 Před 11 měsíci

    Can this be applied in real life

    • @VDEngineering
      @VDEngineering  Před 10 měsíci

      Yea

    • @t.bo.a7061
      @t.bo.a7061 Před 10 měsíci

      @@VDEngineering I mean which language do you use to code this

  • @dutuzeremy5544
    @dutuzeremy5544 Před rokem

    the model is not on github

    • @VDEngineering
      @VDEngineering  Před rokem

      github.com/Vinayak-D/GNCAirstrike

    • @dutuzeremy5544
      @dutuzeremy5544 Před rokem +1

      anyway i redid everything in simulink and it works.
      great content

    • @candourist
      @candourist Před 8 měsíci

      @@dutuzeremy5544 Got Discord?