Guidance, Navigation and Control System Design - Matlab / Simulink / FlightGear Tutorial
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
Thank you all for the 500+ likes: You can now find the model in the link in the comments
i realize Im pretty randomly asking but does anyone know a good website to watch newly released movies online?
@Rohan Wallace Try Flixzone. Just google for it =)
@Maverick Pierce Definitely, have been watching on flixzone for months myself :D
@Maverick Pierce Thanks, I signed up and it seems to work =) I really appreciate it !!
@Rohan Wallace You are welcome =)
a compact explanation of such a huge theory. It's wonderful !
As always great content! Thank you very much for spending your free time explaining us such interesting things!
First time seeing a real practical dynamic model of a system being extracted and subjected to control, very useful.
Just wanted to say thank you for putting together this video, very inspiring as a student to see what you're able to do.
Mr. Vinayak, You are the Ganapati Bappa of My life..Saviour...
Love your content, dude! Super interesting stuff! PS: You're helping me a lot with my paper on quad control systems - thanks so much!
PLEASE DONT STOP MAKING SUCH AWESOME VIDEOS
Really enjoy the model construction process in the demo, Thanks!
Your lectures / classes are very interesting
Thank you very much for the video. I have learned a lot.
You sir are talented af 🤙
So cool, thanks for sharing this work!
Very interesting Thank u, Math part just passed above my head.
Thank your very very march! Amazing, just amazing, thank you so much
Really helpful sir
Very informative
Great video sir!! Thank you very much
hello i am from Iran, thank you for your video, now we making big boom rocket, thank you
😂😂😂😂
Hey Brother ,
Thats Awwwsome ! Keep it up !
Brilliant!! Thanks for sharing
THANK YOU SO MUCH
YOUR CHANNEL IS SO UNDERRATED I AM GOING TO SUBSCRIBE TO YOUR CHANNEL USING ALL OF MY DEVICES
Great video, thank you.
Excellent explanation.
Awesome! thanks for sharing
Great content. This can be simplified a whole lot more using the Navigation Toolbox and Sensor Fusion and Tracking Toolbox.
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!
@@VDEngineering This. Thanks for doing it.
Excellent job VD Engineering
Found this masterpiece ❤
OMG! The best video ever!
Thanks. Cute dog
super content anna
Great video
thx bro this is very interesting
Hi, Amazing video !!! Thanks !! Do Can you nominate content for the rocket's roll control?
thank you for sharing this friend
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.
Oops, my bad, glad you got it working!
The earth’s radius is in meters , he put e3. I’m still unable to get valid results. Wondering where I made mistakes.
@@sampiko9697 In matlab function define R=6371e3, not R=6.371e3
@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 ??
i can relate to what you encountered... blessing in disguise. haha
Do you have any books you recommend for GN&C?
Great work
Perfect ...
You are amazing
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?
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"
how does simulink identify or the Implementation of hardware boards types or does it only support a certain boards ?
Awesome
thanks for this
Wow. Nice
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
Could we animate two independent moving object in one animation? The data flight of two moving objects are imported from Simulink/Matlab.
Only in Simulink 3D animation
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 ?
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
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...
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.
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!
Please make a whole video series from basics to use aerospace blockset of MATLAB and simulink
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
Thanks
Hello and thank you for the video. Can you program a radar that detects moving targets in Alma Talab? Please
Vin, is it possible to do staging, fairing separation, etc... of a rocket with flight gear and simulink???
No, however with Simulink 3D animation it is possible
Can you make a video about missile interception? [ like a Patriot missile intercepting a SCUD ballistic missile(predictable trajectory for SCUD ) ].
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.
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?
yes typo
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!
Not sure how to do that yet
@@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.
4:33. i thinks gama should be eaual to theta plus alph. am i right?
How you define the blast zone?
Can u send model.m file like u have sent for steering control..
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 :)
Matlab website is all you need
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
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.
@@VDEngineering Great , thanks a lot !
Where to code this, I mean in what hardware or something. I know nothing about this topic and I want to know please help ☺
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
how to do that using model predicative control?
Hi can I use the same concept for aircraft error dynamics simulation? In cruise flight
yes, just modify equations accordingly
Excellent!
Hi , excellent video, can you please tell me how to calculate the Y coordinates also? It will be a big help. Thanks in advance
hi aniket, i have some question
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?
the python5 missile does crazy things we cannot simulate by matlab , but how?
Can you share file Simulink connect to Flight gear and file .bat for this project please? Thank you so much
Good
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
I don't know it myself yet. Need simulink real time
15:51 How to further add those in and out blocks in the main subsystem? 😮💨 I'm stuck here 😓
is there any step that he didn't show in the video because it's not working
If u followed all steps then u r capable to find out urself
where can i find the model
i tried to make it myself but it's not working
Hello! Thanks for the vid! I want to implement Kalman filter on inertial navigation system. Can I contact you for help please?
hey vd can you suggest some books to learn GN&C and simulink modeling .
None, this stuff you have to learn on your own
@@VDEngineering
so from where i have to start ?
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!
Hello, they are not connected. I did it separately
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.
yes because the error adds over time
Vinayak sir can you tell which book is best for MATLAB for Aerospace
None. Matlab website
Thanks For the video, but the github is empty where is the code?
@VDEngineering same here
Could you make a video serie about 6 degree of UAVs simulation step by step?
In the future yes
Can you say , what is your system configuration ?
Meanwhile which processors, RAM, graphics card you use ?
I have this laptop: MSI GP72-2QE leopard pro
Could you tell us how to go to flightGear in order to simulate this model?
You can watch my part 1,2,3 videos on it
Hii, i found ur videos very interesting. Is it possible if u could simulation in autonomous parafoil.
I don't know what that is
@@VDEngineering its a parachute that can be controlled autonomously. If u cud do some simulation related to that i will be very helpful.
@@VDEngineering it will be helpful if possible to model a parachute based on eqn of motion
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
I need some flight simulation for rocket or missile launching
I have a rocket one on my channel (STS)
How about another one where you use pronav. That will be fun.
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
DM on insta
Sir I am getting error at matrix multiply X_hat *K
Please please help
Tomorrow I will upload this file to GitHub
@@VDEngineering ok sir just please add the link of uploaded code here. please........
what if the target is moving? what shell we do?
Use Line of Sight guidance, coming in future video
@@VDEngineering waiting for it.. thank u
Why so hurry vinayak bro . Your video is very much fast.
Your content are incredible
Please keep the pace of your video slow
Thank you. Yes next time
Sir what type of guidance are you implementing in this? Thank you for the response :)
Pure pursuit
Can you send me the simulation file?
Check my GitHub
What stage of your education did you learn this stuff?
Undergraduate degree final year
@@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.
I didn't learn at school. I just taught myself.
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.
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.
@@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.
@@VDEngineering Fascinating video but your pace is lightning fast. I would need to pause and check and pause again to think. Well done.
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
Yes small angles, I have to keep everything explanable within 25-30mins
Can this be applied in real life
Yea
@@VDEngineering I mean which language do you use to code this
the model is not on github
github.com/Vinayak-D/GNCAirstrike
anyway i redid everything in simulink and it works.
great content
@@dutuzeremy5544 Got Discord?