In case it is helpful, here are all the Flight Mechanics videos in a single playlist ruclips.net/p/PLxdnSsBqCrrEx3A6W94sQGClk6Q4YCg-h. You can support this channel via Patreon at www.patreon.com/christopherwlum. Please let me know what you think in the comments. Thanks for watching!
AE 512: Its super helpful when you walk through every step of the simulink creation and explain what is going on. Appreciate your effort in these videos!
Excellent video! As a new aerospace grad student this series has been an immense help in understanding modeling considerations and how to actually implement them. Thank you very much!
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
I'm glad it was helpful. There are other similar videos on the channel please feel free to check them out and let me know what you think in the comments. Thanks for watching!
I've been watching the rest of the videos in this playlist and they are all outstanding! I'm a former Aerospace Engineer, still miss it, and have decided to ramp up my skills with modeling dynamic systems, just for fun. I am attempting to model a two-stage launch vehicle into low earth orbit. I found a paper titled "Two-Stage Launch Vehicle Trajectory Modeling for Low Earth Orbit Applications" by Sallam and Makled. In the paper they are using Matlab/Simulink without a lot of actual model examples. It appears that your playlist is what I need to work through this. Do you think there will be some topic areas that I will need in addition to what you have presented in this playlist?
You are so excited about this content that you are throwing your pen around. Your passion for this subject shows and it makes these videos much more enjoyable and interesting. Thank you.
AE 512: Great video at showing how the theory of obtaining the different states in the state vector can be implemented in MATLAB. Even cooler to see the graphs at the end match up with intuition. Connects the dots between mathematical theory and reality.
You're very welcome, this is a part of a series of videos on the channel. Please feel free to check them out and let me know what you think. Thanks for watching!
AA516: It is so cool that such a (relatively) simple process yields such an awesome result. Who need a private jet when I have a plane inside of my computer??
This is very helpful and well explained, thanks a lot. I have a tip, in Matlab we can start new section with two percent signs and a space (%% ), and then we get nicely separated section.
AE512: I expected this to be so much nastier looking, but it's actually pretty elegant. Thankfully, we swept most of the computation under the rug in the RCAM matlab function.
Your video is just amazing. It's being an great help in the development of my own project and I'll be looking forward to more content on the same matter. Infinite thanks for sharing all this knowledge!
This was an epic video. It was really easy to follow along and finally I was able to make this work. Thousand times Thank you for this. One thing though here you put x0 as an initial condition in the integrator block. I tried a different method ie. using initial condition block (i.e. it will provide the input just for the first time step) between the integrator and the input and I am getting an error. The results are coming out to be completely different in both cases. This is confusing me a lot as both the approaches look the same to me. Obviously I am missing something important. It would be great if you could clear this doubt. Thanks again for making this video this is just too awesome.
wow. thanks for the great video. i was thinking of building similar model recently with arduino and inputs from the pin or joystick. this video will definitely help me doing that easily.
I'm glad you enjoyed it. I've got several other videos in this series on the channel (and more coming in the very near future). Please let me know what you think of the other videos, thanks for watching!
Great presentations ! Excellent work. How about taking the simulation one step further and connect the model you created to a Joystick and FlightGear and show us that it really flies ? How does your plant model compare to the Simulink 6 DOF model ? Do they agree ?
Your video lectures boost up interest in flight dynamics. I have one query related to Simulink. How methodology like ML, KF etc can be implemented in Simulink Model to estimate stability derivatives.
AA 516: Awesome video! I'm struggling with the dimensions of C_bs and other matrices involving arrays like alpha or Va (HW6 1b). For C_bs I can only seem to get a 2977x1. The only way I can think to fix it is with a for loop and iterate over all the values of alpha, but then I would have to index everything which it sounded like we wanted to avoid based on this video.
@@ChristopherLum In the 13 to 16 minute range. I'm messing with it right now but it might be easier if I could email you separately, or just wait until office hours!
Dear Chris... can you refer some document where can i find these aerodynamic and geometric features for Boeing 737.... i need to model it on the same way as you have done for RCAM... thanks
AA 516: Fun lecture! (and homework) I'm excited to continue bridging the gap between the theory/modeling and what we do in MATLAB/Simulink! I'm curious (if you're allowed to share) how much Simulink do you use in industry, and how applicable would something like this process we're doing here be as a controls/gnc engineer?
Jack, excellent question. This obviously depends on what company and even what group you are in within said company. A lot of GNC engineers use Matlab/Simulink extensively for simulation, control, and other analysis. Let's just say I use it on a daily basis.
Hello pls I have a question: “At what stage in the Modeling did he define the ‘tout’ and ‘t’ variables that appeared as 162x1 double in the workspace upon running the code???”
Hey Professor Christopher, this is such a great video and super well explained as well. I was attempting to build a similar model for my thesis at university and was wondering if there’s anywhere I could find the Matlab scripts and simulink for this model, currently have one that Im trying to visualise in flightgear and failing miserably.
Hi Dhruv, Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching! -Chris
Hi, Greetings from Africa Dear Professor Christopher... I really thank you I have learnt from you a lot,,, and I have one question if you please ----> Can we trim this model as you explained in the Lecture of (Trimming a Simulink Model Using the Linear Analysis Tool) ?? ,,, How can I trim this model into a state of equilibrium ?? Thanks in advance
AA516: I was going to ask if there was a more efficient way of performing the limit checks rather than the if statements, but then we switched to the saturation blocks, so that sort of answers my question.
Hi Christopher, your videos are great and educational, and you are probably a great professor. I have implemented the codes, along with the Navigation equations and the geodetic equations but I got a question... Since we mostly get a negative theta (meaning we are heading downwards (?), WHY does the state variable X3 (z- axis velocity on Body frame ) turns out to be NEGATIVE?!! I can't put my finger on it. The rest of the variables, including the downward velocity (z- axis on Vehicle frame) behave as expected
Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching!
Hello, I am studying this lecture recently. As far as I know, even if the angle of attack is negative, as long as it is greater than the zero-lift angle of attack, the body can still rise (which means the speed in the Z direction is negative). If you have answers or other ideas, you can reply to me for further discussion.
What is the discontinuity at ~32 seconds in the upper middle graph at @49:30 ? There are other discontinuities in other graphs at that point as well. Did a numerator go to zero somewhere ?
Hi Christopher, is there a way to have the user-defined Matlab Function Block, and still avoid duplicating the matlab code in RCAM_model.m? In other words, is there something analogous to a C #include feature?! It seems like I need the user-defined Matlab Function block, so that I can generate standalone C code for my matlab function. Once again, it's a pleasure to watch you video on such a dry subject!
Hi Sree, First let me say thank you for your generous support of the channel, it is very much appreciated! To answer your question, yes, one of the easiest ways to avoid duplication is have the Matlab Function block simply call your RCAM_model.m function. All the implementation would be in RCAM_model.m and the Matlab Function is simply a wrapper for this function call. Do you have any particular interests in terms of videos or topics? I try to prioritize request made by interested parties as much as possible as I plan future videos. If you are interested, I interact personally with all Patreon members at www.patreon.com/christopherwlum. Given your interest in the topic, I'd love to have you as a Patron. In any event, I want to again say thank you for your contribution and for supporting the channel. I hope to hear from you at a future RUclips video or on Patreon! -Chris
Hi Sree, First let me say thank you for your generous support of the channel, it is very much appreciated! Also, Let me apologize for the late response. Somehow this comment slipped through the cracks and I only just noticed it. Do you have any particular interests in terms of videos or topics? I try to prioritize request made by interested parties as much as possible as I plan future videos. If you are interested, I interact personally with all Patreon members at www.patreon.com/christopherwlum. Given your interest in the topic, I'd love to have you as a Patron. In any event, I want to again say thank you for your contribution and for supporting the channel. I hope to hear from you at a future RUclips video or on Patreon! -Chris
Hi Lorenzo, First let me say thank you for your generous support of the channel, it is very much appreciated! Do you have any particular interests in terms of videos or topics? I try to prioritize request made by interested parties as much as possible as I plan future videos. If you are interested, I interact personally with all Patreon members at www.patreon.com/christopherwlum. Given your interest in the topic, I'd love to have you as a Patron (I also have downloads like code, notes, models, etc. on Patreon). In any event, I want to again say thank you for your contribution and for supporting the channel. I hope to hear from you at a future RUclips video or on Patreon! -Chris
AE512: Regarding the inertia matrix inverse. If we were considering a time variant system, we would obviously be stuck updating the inertia matrix and it's inverse. If this was written for software that was being loaded onto a flight computer, how would you assess the impact of having to compute that inverse at each time step?
If the inertia was changing then you'd have to compute the inverse each time step. That being said, it is only a 3x3 and the inverse of this is very easy to compute efficiently.
AA 516: Hi prof Lum, I'm curious if you wanted to express the position of the aircraft in the NED (inertial) frame, would it be as simple as transforming u,v,w using the euler angles phi,theta,psi to get airspeed in the inertial frame, and then integrating to get position? Thanks!!
Hi Christopher. I am working on a project using Matlab/Simulink aerospace blockset. i want to modify the example on Parrot mambo drone for implementation on the physical drone. please i need help urgently
Hello Christopher sir....Great explanation...very nice...All of your sessions...I tried for the simulation of RCAM_model and RCAMSimulation....in Matlab 2021a...but I am getting an error like... Error using InitializeConstants (line 22) Not enough input arguments. Error using InitializeConstants (line 22) Error in 'RCAMSimulation/Interpreted MATLAB Function' while evaluating expression. please tell me how to rectify them.
Hi Charan, Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching! -Chris
why do you use as state the velocity written in the body fixed reference frame instead of the the velocity written in the inertial frame? In the other form, the equations for translational dynamics are more compact.
Hi Professor, i got an issue when plotting the graphs of the results, the speed of "u" drops down while "r" gains. I've checked the code and the lecture many times and I still don't find the issue. Can you give me any idea of where I exactly may have screw up?
Hi Patricio, Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching! -Chris
Hello Christopher, been trying to access the source document "Robust Flight Control Design Challenge Problem Formulation and Manual: the Research Civil Aircraft Model (RCAM)" but I am only able to get an older version, any suggestions as to how I can get the one used here?
i have Robust Flight Control Design Challenge Problem Formulation and Manual - the Research Civil Aircraft Model (RCAM)(TP88-3) from 1997 if it would help you.
Wow! Great video. It would be great help for us, if you share your RCAM_model.m matlab code. So, I request you to share your matlab code in description.
AE512: As someone who does a lot of software programming, I know all too well about the pain of having copied code in two (or more!) separate locations. Would much rather prefer to have it in one single location, to make sure that if it needs to be updated it only is updated in one place!
An error occurred while running the simulation and the simulation was terminated Caused by: Error due to multiple causes. Attempt to execute SCRIPT RCAM_model as a function: C:\Users\Public\Downloads\Simul\RCAM_model.m Error in 'RCAMsimulation/Interpreted MATLAB Function' while evaluating expression. Sir i am experiencing this error
AE512: Hi Professor, thanks for the video. I followed your steps but I am getting an error when running the SIMULINK. Caused by: Error in 'RCAMSimulation/Interpreted MATLAB Function' while computing the output. The width of the result was 9 when a width of 1 was expected. My XDOT is a 9x1 matrix so I don't know what is going on. Thanks.
Marcos, you can try to manually specify the dimension of the output as 9. Sometimes Simulink needs help understanding the dimension of signals. I can show you how to do this at office hours if you've never seen this before.
Please help me solve the problem in Matlab 2021. I did everything as in the video. Error using InitializeConstant Error due to multiple causes. Cause by: Error using InitializeConstant Not enough input arguments. Error using InitializeConstant Error in 'RCAMSimulation/interpreted MATLAB Function' while evaluating expression.
I think I've seen a PS4 controller work. To be more specific, I believe it was a playstation controller with a USB interface but I can't 100% remember. It might be a good thing to try.
Hi Pavani, Thanks for reaching out. If you have questions or would like to request a video or source code, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching! -Chris
@@diogopinheiro520 você conseguiu fazer o código? Eu tô com um projeto de um avião por rádio controle e preciso fazer um relatório que entra essa simulação, mas é algo muito novo pra mim, poderia me ajudar? Me envia uma resposta no meu e-mail por favor camilabueno@estudante.ufscar.br Obrigada 😊
Isn 't there a problem with calculating rol pitch yaw moment at section: %------------------------------------------------6. AERODYNAMIC MOMENT ABOUT Aerodynamic Center in Fb---------------------------------------------------------------- % Normalize to an aerodynamic moment MAac_b = CMac_b*Q*S*cbar; all Cl Cm and Cn are multiplied by c_bar however the Cl & Cm has to be multiplied by b (wing span) instead of c_bar (mean aerodynamşc chord)? Thanks a lot..
Hi Akan, Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching! -Chris
Well that's because the RCAM model normalizes Wind tunnel coefficients around cbar, just in case you still keep interest. What it is really weird to me is that applying Euler angles to North East Down reference frame, an idling plane increases altitude due to a negative w. I'm pretty sure there must be a little inconsistency hiding there.
@@txemagonz -w means increasing vertical velocity therefore altitude raises. It has been quite a while that I studied this. Shortly, I adjust parameters to maintain required behaviour of the aircraft.
In case it is helpful, here are all the Flight Mechanics videos in a single playlist ruclips.net/p/PLxdnSsBqCrrEx3A6W94sQGClk6Q4YCg-h. You can support this channel via Patreon at www.patreon.com/christopherwlum. Please let me know what you think in the comments. Thanks for watching!
pro tip : you can watch series at flixzone. Been using them for watching lots of of movies recently.
U r a gem here for the enthusiastic student
AE 512: Its super helpful when you walk through every step of the simulink creation and explain what is going on. Appreciate your effort in these videos!
I'm glad it is useful, hopefully it helps get your model implemented and tested!
Excellent video! As a new aerospace grad student this series has been an immense help in understanding modeling considerations and how to actually implement them. Thank you very much!
I'm glad it was helpful. There are several related videos on the channel. Please feel free to check them out and I would love to hear what you think in the comments. Thanks for watching!
Hands down THE BEST video for this topic.
I'm glad it was helpful. There are other similar videos on the channel please feel free to check them out and let me know what you think in the comments. Thanks for watching!
I've been watching the rest of the videos in this playlist and they are all outstanding!
I'm a former Aerospace Engineer, still miss it, and have decided to ramp up my skills with modeling dynamic systems, just for fun. I am attempting to model a two-stage launch vehicle into low earth orbit. I found a paper titled "Two-Stage Launch Vehicle Trajectory Modeling for Low Earth Orbit Applications" by Sallam and Makled. In the paper they are using Matlab/Simulink without a lot of actual model examples.
It appears that your playlist is what I need to work through this. Do you think there will be some topic areas that I will need in addition to what you have presented in this playlist?
AE512: I always appreciate you walking through the example like this. I don't work with Simulink in my professional life and this is always helpful.
You are an incredible resource! True inspiration
AE 512 Great video! It really helped me visualize how the inputs affected the RCAM.
You are so excited about this content that you are throwing your pen around. Your passion for this subject shows and it makes these videos much more enjoyable and interesting. Thank you.
AE 512: Great video at showing how the theory of obtaining the different states in the state vector can be implemented in MATLAB. Even cooler to see the graphs at the end match up with intuition. Connects the dots between mathematical theory and reality.
AA516: Thank you for showing how to build a aircraft model from scratch! Easy to follow, so very helpful to practice making simulink:)
AE512: Very helpful! Simulink has always been difficult for me so a detailed walk through is very much appreciated
Ryan, in case you're interested, I have a video to get started with Simulink at ruclips.net/video/WLPvCefp6Qo/видео.html
AE 512: The anticipation of where this is going is getting to me. Can't wait to make a flight simulator. :)
Yes, now we're playing with power!
AA516: Really cool to see all of the previous videos build up to this model.
This is absolutely fantastic. I can't test until I see how the next phase turns out. Thank you for your kind service
You're very welcome, this is a part of a series of videos on the channel. Please feel free to check them out and let me know what you think. Thanks for watching!
AA 516: Allie S, this is awesome! thanks for sharing such a cool resource
AE512: This video was very helpful in building the RCAM simulink model :)
AA 516 - Pretty cool to see everything come together!
AA516: It is so cool that such a (relatively) simple process yields such an awesome result. Who need a private jet when I have a plane inside of my computer??
It was awesome and exactly what I am looking for. Thank you so much
God bless your work sir❤
This is very helpful and well explained, thanks a lot.
I have a tip, in Matlab we can start new section with two percent signs and a space (%% ), and then we get nicely separated section.
AE512: I expected this to be so much nastier looking, but it's actually pretty elegant. Thankfully, we swept most of the computation under the rug in the RCAM matlab function.
AA516 - I really enjoyed following along with this lecture and building the model. I think this will be a big help for the project
AA516: Thanks for the lecture Professor.
Thanks, just because of u I don't give up on my project .u r greatttttttttttttttttttttttttttttttttt
AA516: Being relatively new to Simulink, I appreciate the walkthrough of building a model on this platform
Hi prof Lum, I extremely love this video. it covers most materials of my control class
Jason-AE512: This video helps me a lot on solving homework problems.
Great video! Can't wait to see more flight mechanics videos in the future!
Hi, did you publish the matlab file somewhere? great video! that open my mind!
Your video is just amazing. It's being an great help in the development of my own project and I'll be looking forward to more content on the same matter. Infinite thanks for sharing all this knowledge!
AE 512: It's all coming together!
Thank you so much. It helped me to understand the behaviour of aircraft very well .
This was an epic video. It was really easy to follow along and finally I was able to make this work. Thousand times Thank you for this.
One thing though here you put x0 as an initial condition in the integrator block. I tried a different method ie. using initial condition block (i.e. it will provide the input just for the first time step) between the integrator and the input and I am getting an error. The results are coming out to be completely different in both cases. This is confusing me a lot as both the approaches look the same to me. Obviously I am missing something important. It would be great if you could clear this doubt.
Thanks again for making this video this is just too awesome.
AA516 - Very cool !!
"More confused than a chameleon in a bag full of skittles", haha that's a good one!
Hi Justin, I'm glad you enjoyed it, thanks for the feedback!
Great video sir, I really appreciate your work!
wow. thanks for the great video. i was thinking of building similar model recently with arduino and inputs from the pin or joystick. this video will definitely help me doing that easily.
I'm glad you enjoyed it. I've got several other videos in this series on the channel (and more coming in the very near future). Please let me know what you think of the other videos, thanks for watching!
Superb series
AA516- super interesting and helpful for hw
AA516: very cool!
AE512: Pretty amazing that it just takes under 300 lines of code to model a dynamic, 6 degree of freedom, aircraft
Great presentations ! Excellent work.
How about taking the simulation one step further and connect the model you created to a Joystick and FlightGear and show us that it really flies ?
How does your plant model compare to the Simulink 6 DOF model ? Do they agree ?
Very helpful!
Waiting for upcoming video related to Simulink.
Thats the stuff
Your video lectures boost up interest in flight dynamics. I have one query related to Simulink. How methodology like ML, KF etc can be implemented in Simulink Model to estimate stability derivatives.
AA 516: Awesome video! I'm struggling with the dimensions of C_bs and other matrices involving arrays like alpha or Va (HW6 1b). For C_bs I can only seem to get a 2977x1. The only way I can think to fix it is with a for loop and iterate over all the values of alpha, but then I would have to index everything which it sounded like we wanted to avoid based on this video.
Zach, that seems odd, do you have a timestamp that illustrates when you think things are going wrong?
@@ChristopherLum In the 13 to 16 minute range. I'm messing with it right now but it might be easier if I could email you separately, or just wait until office hours!
Dear Chris... can you refer some document where can i find these aerodynamic and geometric features for Boeing 737.... i need to model it on the same way as you have done for RCAM... thanks
AA 516: Fun lecture! (and homework) I'm excited to continue bridging the gap between the theory/modeling and what we do in MATLAB/Simulink!
I'm curious (if you're allowed to share) how much Simulink do you use in industry, and how applicable would something like this process we're doing here be as a controls/gnc engineer?
Jack, excellent question. This obviously depends on what company and even what group you are in within said company. A lot of GNC engineers use Matlab/Simulink extensively for simulation, control, and other analysis. Let's just say I use it on a daily basis.
Hello pls I have a question: “At what stage in the Modeling did he define the ‘tout’ and ‘t’ variables that appeared as 162x1 double in the workspace upon running the code???”
Hey Professor Christopher, this is such a great video and super well explained as well. I was attempting to build a similar model for my thesis at university and was wondering if there’s anywhere I could find the Matlab scripts and simulink for this model, currently have one that Im trying to visualise in flightgear and failing miserably.
Hi Dhruv,
Thanks for the kind words, I'm glad you enjoyed the video. If you find these videos helpful, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. Given your interest in this topic, I'd love to have you a as a Patron as I'm able to talk/interact personally with all Patrons. I can also answer any questions, provide code, notes, downloads, etc. on Patreon. Thanks for watching!
-Chris
AA516: I can see the possibilities for joystick input that we are heading towards.
Hi, Greetings from Africa Dear Professor Christopher...
I really thank you I have learnt from you a lot,,, and I have one question if you please ----> Can we trim this model as you explained in the Lecture of (Trimming a Simulink Model Using the Linear Analysis Tool) ?? ,,, How can I trim this model into a state of equilibrium ??
Thanks in advance
AA516: I was going to ask if there was a more efficient way of performing the limit checks rather than the if statements, but then we switched to the saturation blocks, so that sort of answers my question.
Hi Christopher, your videos are great and educational, and you are probably a great professor. I have implemented the codes, along with the Navigation equations and the geodetic equations but I got a question... Since we mostly get a negative theta (meaning we are heading downwards (?), WHY does the state variable X3 (z- axis velocity on Body frame ) turns out to be NEGATIVE?!! I can't put my finger on it. The rest of the variables, including the downward velocity (z- axis on Vehicle frame) behave as expected
Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching!
Hello, I am studying this lecture recently. As far as I know, even if the angle of attack is negative, as long as it is greater than the zero-lift angle of attack, the body can still rise (which means the speed in the Z direction is negative). If you have answers or other ideas, you can reply to me for further discussion.
What is the discontinuity at ~32 seconds in the upper middle graph at @49:30 ? There are other discontinuities in other graphs at that point as well. Did a numerator go to zero somewhere ?
Is there a possibility to download the MATLAB-Code?
Hi Christopher, is there a way to have the user-defined Matlab Function Block, and still avoid duplicating the matlab code in RCAM_model.m? In other words, is there something analogous to a C #include feature?! It seems like I need the user-defined Matlab Function block, so that I can generate standalone C code for my matlab function. Once again, it's a pleasure to watch you video on such a dry subject!
Hi Sree,
First let me say thank you for your generous support of the channel, it is very much appreciated!
To answer your question, yes, one of the easiest ways to avoid duplication is have the Matlab Function block simply call your RCAM_model.m function. All the implementation would be in RCAM_model.m and the Matlab Function is simply a wrapper for this function call.
Do you have any particular interests in terms of videos or topics? I try to prioritize request made by interested parties as much as possible as I plan future videos.
If you are interested, I interact personally with all Patreon members at www.patreon.com/christopherwlum. Given your interest in the topic, I'd love to have you as a Patron.
In any event, I want to again say thank you for your contribution and for supporting the channel. I hope to hear from you at a future RUclips video or on Patreon!
-Chris
@@ChristopherLum Thanks for your very quick response. I'll try your suggestion.
Thanks!
Oops! I apologize for not figuring out how to suppress the comment re the donation!
Hi Sree,
First let me say thank you for your generous support of the channel, it is very much appreciated! Also, Let me apologize for the late response. Somehow this comment slipped through the cracks and I only just noticed it.
Do you have any particular interests in terms of videos or topics? I try to prioritize request made by interested parties as much as possible as I plan future videos.
If you are interested, I interact personally with all Patreon members at www.patreon.com/christopherwlum. Given your interest in the topic, I'd love to have you as a Patron.
In any event, I want to again say thank you for your contribution and for supporting the channel. I hope to hear from you at a future RUclips video or on Patreon!
-Chris
Learnt a lot from this video! Just wondering, will you be also covering the Matlab/Simulink model of a tilt-rotor aircraft too?
Thanks
Hi Lorenzo,
First let me say thank you for your generous support of the channel, it is very much appreciated!
Do you have any particular interests in terms of videos or topics? I try to prioritize request made by interested parties as much as possible as I plan future videos.
If you are interested, I interact personally with all Patreon members at www.patreon.com/christopherwlum. Given your interest in the topic, I'd love to have you as a Patron (I also have downloads like code, notes, models, etc. on Patreon).
In any event, I want to again say thank you for your contribution and for supporting the channel. I hope to hear from you at a future RUclips video or on Patreon!
-Chris
AE512:
Regarding the inertia matrix inverse. If we were considering a time variant system, we would obviously be stuck updating the inertia matrix and it's inverse.
If this was written for software that was being loaded onto a flight computer, how would you assess the impact of having to compute that inverse at each time step?
If the inertia was changing then you'd have to compute the inverse each time step. That being said, it is only a 3x3 and the inverse of this is very easy to compute efficiently.
Sir, I tried to run this in a parafoil model, but its showing error. Cud u pls help me sir
AA 516: Hi prof Lum, I'm curious if you wanted to express the position of the aircraft in the NED (inertial) frame, would it be as simple as transforming u,v,w using the euler angles phi,theta,psi to get airspeed in the inertial frame, and then integrating to get position? Thanks!!
Hi Patrick, yes, in fact that is exactly what we talk about in the videos for this week, you're just a bit ahead of the scheduled program :)
Hi Christopher. I am working on a project using Matlab/Simulink aerospace blockset. i want to modify the example on Parrot mambo drone for implementation on the physical drone. please i need help urgently
Hello Christopher sir....Great explanation...very nice...All of your sessions...I tried for the simulation of RCAM_model and RCAMSimulation....in Matlab 2021a...but I am getting an error like...
Error using InitializeConstants (line 22)
Not enough input arguments.
Error using InitializeConstants (line 22)
Error in 'RCAMSimulation/Interpreted MATLAB Function' while evaluating expression.
please tell me how to rectify them.
Hi Charan,
Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching!
-Chris
could you solve this problem man?
Did you figure this out ?
why do you use as state the velocity written in the body fixed reference frame instead of the the velocity written in the inertial frame? In the other form, the equations for translational dynamics are more compact.
FROM WHERE I CAN GET THE ENTIRE CODE ?
Hi Professor, i got an issue when plotting the graphs of the results, the speed of "u" drops down while "r" gains. I've checked the code and the lecture many times and I still don't find the issue.
Can you give me any idea of where I exactly may have screw up?
Hi Patricio,
Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching!
-Chris
thanks a lot , would you please dvelop a vehicle model using simulink and matlab step by step like RCAM_model. I wonder if u do that
Hello Christopher, been trying to access the source document "Robust Flight Control Design Challenge Problem Formulation and Manual: the Research Civil Aircraft Model (RCAM)" but I am only able to get an older version, any suggestions as to how I can get the one used here?
i have Robust Flight Control Design Challenge Problem Formulation and Manual - the Research Civil Aircraft Model (RCAM)(TP88-3) from 1997 if it would help you.
Hello, @@alexsopo9917 Yes! That would be incredibly helpful, please advise how I can gain access to it. Thank you!
@@hellstromeyoung8015 garteur.org/technical-reports/ at the Flight mechanics, systems and integration section
@@alexsopo9917 at the Garteur site I came across the 1995 model published in 1996, is this the same one?
where is the RCAM.m file? how do you find the source code?
where can we find the Matlab scripts u copied and pasted in this video ?
Hi, can you upload the Simulink file to github? I've tried following along in Simulink and want to cross-check if both outputs are same
Wow! Great video. It would be great help for us, if you share your RCAM_model.m matlab code. So, I request you to share your matlab code in description.
Hello Christopher, could you help by letting me know what are the changes to be made for MATLAB 2020?
Thanks for the detailed video!
did you get it?
Hi there, I am using MATLAB 2022a, was wondering if you have found the solution@@nachiketsankhe1086
This is really depressing considering I am student and I know I'll never in my life be this good...
Don't discount yourself like that. If you spent a couple years studying this stuff as a MSc or PhD candidate, you'd know it this well too.
AE512: As someone who does a lot of software programming, I know all too well about the pain of having copied code in two (or more!) separate locations. Would much rather prefer to have it in one single location, to make sure that if it needs to be updated it only is updated in one place!
I completely agree. Good software habits are super important!
An error occurred while running the simulation and the simulation was terminated
Caused by:
Error due to multiple causes.
Attempt to execute SCRIPT RCAM_model as a function:
C:\Users\Public\Downloads\Simul\RCAM_model.m
Error in 'RCAMsimulation/Interpreted MATLAB Function' while evaluating expression.
Sir i am experiencing this error
AA516: My constant U control vector isn't produced as a time-series. It's just a single value at t = 0.
A A 516: realized I forgot to leave comments!
AE512: Hi Professor, thanks for the video. I followed your steps but I am getting an error when running the SIMULINK.
Caused by: Error in 'RCAMSimulation/Interpreted MATLAB Function' while computing the output. The width of the result was 9 when a width of 1 was expected.
My XDOT is a 9x1 matrix so I don't know what is going on. Thanks.
Marcos, you can try to manually specify the dimension of the output as 9. Sometimes Simulink needs help understanding the dimension of signals. I can show you how to do this at office hours if you've never seen this before.
Could anyone please tell me what would be the state and control surface inputs for a steady flight..
AA516: Celeste Yuan.
can u provide us the code for the model?
I followed you exactly, but the result is different......
Please help me solve the problem in Matlab 2021. I did everything as in the video.
Error using InitializeConstant
Error due to multiple causes.
Cause by:
Error using InitializeConstant
Not enough input arguments.
Error using InitializeConstant
Error in 'RCAMSimulation/interpreted MATLAB Function' while evaluating expression.
I realized that I need to somehow set the initial state vector (X))
@@gts6676 Did you figure it out ?
Can you help me too ? I have R2023a version
Please publish your files so we can follow along as you work through things.
Do you have the files?
[AE 512] Excited to build a flight simulator!
Do you know if anyone has gotten a PS4 controller to work with the sim? I know you mentioned Xbox.
I think I've seen a PS4 controller work. To be more specific, I believe it was a playstation controller with a USB interface but I can't 100% remember. It might be a good thing to try.
I got the PS4 working with my computer so I think it should work.
you sound like linus! from linuxtech youtube channel
Can someone please send the source code for this?
Hi Pavani,
Thanks for reaching out. If you have questions or would like to request a video or source code, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum or via the 'Thanks' button underneath the video. I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching!
-Chris
AA516: Flight Simulator 👀👀👀👀👀👀
Can you shoot me an email and let me know who this is so I can award appropriate participation points, thanks.
Doesn't work on R2020a.
Sorry to disturb you. How did you get the source code?
faça a modificação na versao 2020
________________________________________
%% Run modelo
saida = sim('RCAM_Simulation')
%% Gráfico dos Resultados
t = saida.simX.Time;
% Extraindo os dados do Simulink
u1 = saida.simU.Data(:,1);
u2 = saida.simU.Data(:,2);
u3 = saida.simU.Data(:,3);
u4 = saida.simU.Data(:,4);
u5 = saida.simU.Data(:,5);
x1 = saida.simX.Data(:,1);
x2 = saida.simX.Data(:,2);
x3 = saida.simX.Data(:,3);
x4 = saida.simX.Data(:,4);
x5 = saida.simX.Data(:,5);
x6 = saida.simX.Data(:,6);
x7 = saida.simX.Data(:,7);
x8 = saida.simX.Data(:,8);
x9 = saida.simX.Data(:,9);
______________________________________
Agora deve funcionar.
Excelente vídeo.
Obrigado Sr Christopher Lum
@@diogopinheiro520 você conseguiu fazer o código? Eu tô com um projeto de um avião por rádio controle e preciso fazer um relatório que entra essa simulação, mas é algo muito novo pra mim, poderia me ajudar? Me envia uma resposta no meu e-mail por favor camilabueno@estudante.ufscar.br Obrigada 😊
Isn 't there a problem with calculating rol pitch yaw moment at section:
%------------------------------------------------6. AERODYNAMIC MOMENT ABOUT Aerodynamic Center in Fb----------------------------------------------------------------
% Normalize to an aerodynamic moment
MAac_b = CMac_b*Q*S*cbar;
all Cl Cm and Cn are multiplied by c_bar however the Cl & Cm has to be multiplied by b (wing span) instead of c_bar (mean aerodynamşc chord)?
Thanks a lot..
Hi Akan,
Thanks for reaching out, I'm glad you enjoyed the video. Unfortunately I'm unable to respond to questions on RUclips due to the sheer volume of inquiries that I receive. That being said, I hope you'll consider supporting the channel via Patreon at www.patreon.com/christopherwlum as I'll be able to answer questions there. Given your interest in the topic, I'd love to have you as a Patron as I'm able to talk/interact personally with Patrons. Thanks for watching!
-Chris
Well that's because the RCAM model normalizes Wind tunnel coefficients around cbar, just in case you still keep interest.
What it is really weird to me is that applying Euler angles to North East Down reference frame, an idling plane increases altitude due to a negative w. I'm pretty sure there must be a little inconsistency hiding there.
@@txemagonz -w means increasing vertical velocity therefore altitude raises. It has been quite a while that I studied this. Shortly, I adjust parameters to maintain required behaviour of the aircraft.
thanks