1. Home
  2. Explore
  3. Engineering
  4. UAV Robotics Dynamics and Control

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

UAV Robotics Dynamics and Control

Transcript

18:00:16 Okay, welcome to robotics to. 18:00:22 In this class we are going to talk about design of robotic systems. 18:00:30 They will focus on dynamics. 18:00:33 Modern modeling and control of the robots. 18:00:40 This course will be offered via issue sync. 18:00:47 zoom link is shown in the syllabus. 18:00:52 So let me quickly go through the syllabus. 18:00:57 So my name is Sandra from red car. 18:01:02 My email, phone information is given here.

18:01:07 My office is in Technology Center. 18:01:12 This course is an extension of the previous plus, robotics, one 18:01:21 in robotics one. 18:01:24 We talked about articulated robots robotic hands. 18:01:31 How to find out, Dan avec heartened Burke sign conventions and defector positions Jacobins velocities, dynamic modeling, and so on. 18:01:47 In this class, we are going to focus on aerial robots. In other words, UAV unmanned aerial vehicle. 18:02:02 So, if you go to the syllabus.

18:02:06 The class is going to meet twice a week, Tuesdays and Thursdays, from six to 715, the enrollment requirement is familiarity with the material in AGR 455. 18:02:31 And it goes without saying that you should be fairly comfortable with MATLAB. 18:02:41 So, even though it doesn't say exclusively here. 18:02:46 We are going to use MATLAB significantly. 18:02:52 So, you should be comfortable that modular. 18:03:01 Now, here is a textbook.

18:03:04 And I recommend a strongly recommend to get a copy of the textbook. 18:03:11 Because we are going to follow the textbook section by section. 18:03:17 So this will be very, very helpful. 18:03:21 As we work on problems, as we've discussed the material, and so on. 18:03:28 Now this is a small book, it is an introductory book on unmanned aircraft. 18:03:36 But it talks about all the aspects like the applications coordinate frames kinematics dynamics.

18:03:48 Then design model, how to design the autopilot controller design and all that stuff that is really needed to design and modern and unmanned aerial vehicle. 18:04:07 The will not be focusing on large aircrafts. 18:04:13 He will be focusing on miniature aircrafts. So basically, we will talk about ma reads. 18:04:25 So, the course emphasis and objectives are given in the syllabus. 18:04:32 We will look at different robotic systems. 18:04:40 Understanding the software for robot

simulation. 18:04:51 Okay. 18:04:55 Check. 18:04:57 What's going on with the book. 18:05:02 Just let me, let me share my canvas screen, and we'll go through it. 18:05:07 But this is the book, small unmanned aircraft theory and practice by random bear. 18:05:17 Now, the student learning objectives are understanding kinematics and dynamics principles. 18:05:27 Understanding hardware and software design, and using software tools for robotics. 18:05:39 The course policies.

18:05:43 And I want to emphasize that please attend all the classes, complete all the assignments and participate and work on the material that is discussed and assignments in the class. 18:06:09 If you have any questions, do not hesitate to ask the grading is 90 and about a 80 and above the 70 and about see 60 and above D and zero to 59, he. 18:06:36 Now, all the assignments will be submitted, you have to submit the assignments to Canvas. 18:06:51 Unless you have a valid University

excuse. 18:06:51 Later, late assignments will not be accepted. 18:06:57 And for this course, she have to teaching assistance. 18:07:04 One is money not and whatnot, is here. 18:07:11 And the other one is George, that you may know my not is attending the today's class. 18:07:24 So I'm not, I'm gonna unmute you for us for a second. 18:07:27 And if you want to introduce yourself to the class, and just type in your email,

I would appreciate it or not, you are unmuted. 18:07:39 Hey guys, can you hear me. 18:07:43 Yes. 18:07:44 Hey guys, I'm not. 18:07:46 I took this class while ago, I had a lot of fun got to build the robot arm, it was it was a blast on. 18:07:54 I know that this is going to be a lot more focused on Ariel, Ariel vehicles this time, but I think it's gonna be a lot of fun, and you guys are going to get to do some pretty cool stuff. 18:08:02 So I'll go ahead and write my email in the chat. But yeah, if you guys have any questions or anything just let me know. 18:08:10 Thank you. 18:08:16 George is not here today, but he is planning to send you all an email. 18:08:23 That way you can reach out to George, as well. 18:08:28 Please make yourself familiar with ADD and drop withdrawal deadlines, because that are important. 18:08:40 Great appeals, there is a process for great appeal. 18:08:42 And you should make yourself familiar

with the grade appeal procedure. 18:08:50 Please do the student evaluations, they are important. 18:08:57 And this syllabus is for guideline purposes, depending upon how fast or how slow the coup. 18:09:08 The syllabus, we can add some topics or some topics may not be discussed. 18:09:16 But I anticipate at this point that we should be able to finish, almost entire textbook. 18:09:27 I just want to go to the class schedule.

18:09:30 And I would like to give you the entire course schedule. In the very first class. 18:09:37 Because I know all of you are taking 456 classes. Some of you are working. 18:09:45 Some of you are taking care of family. 18:09:48 So it's, it's better if you have the whole schedule, so you can manage your time, better. 18:09:57 So, we are going to follow the textbook. 18:10:02 Fairly rigorously. 18:10:04 So, We will start with chapter one. 18:10:09 You see the date. You see the textbook topics.

18:10:13 And in the notes, it briefly talks about the material, and the section that we are going to study for an example, in today's class, we will review the syllabus. 18:10:28 Look at the core structure. 18:10:30 Look at expectation answer some Q and A's and start with the material from the book, and then probably end with a MATLAB activity. 18:10:44 I would anticipate to do a match lab activity in every class. 18:10:50 So it's, it's good idea to have MATLAB

install on your computers and work through the programs, as I type in, like what we did in last class. 18:11:08 I would type in the MATLAB code. 18:11:11 And we will go line by line will discuss the code. And I will also show you, or give you the code that you can run on your computers. 18:11:24 So please note project one is assigned today. 18:11:30 And that project one is still on 119. 18:11:38 Let me give you good news, there are no homework or exams. In this course,

we will have projects. So as you can see, there are in total. 18:11:54 Nine projects. 18:11:57 And these projects are designed and intended to make yourself familiar with all the concepts that we discuss in this course. 18:12:10 At the end of the course. The objective is, you will have your own MATLAB simulator. 18:12:20 A flight simulator three dimensional flight simulator that you can use to simulate control and design a UAV. 18:12:32 So these assignments are expected

to be rigorous, you don't have any homework, you don't have any quiz, you don't have any final exam, what your grade solely depends upon the project. 18:12:48 So, I would expect you to put your heart and soul in doing the projects. 18:12:55 Very well. 18:12:58 Now, one thing I want to tell you is, you will see, for example, project one is assigned. 18:13:06 We will have a MATLAB activity, supporting the project, they will have MATLAB activities

supporting the project. 18:13:15 Then, on 121, that class will be devoted to discuss the solution of project one. 18:13:27 So, I will discuss the solution of project one. 18:13:32 And at that time, you will have a second chance. 18:13:42 second chance to make corrections to the project that you have done. 18:13:56 So in other words, if you do the project and turn it in by next week. 18:14:04 But maybe you are not so clear about the, the material, or maybe you think that

hey, I missed something. 18:14:19 You will get another chance to do rework the problem and turn it in. 18:14:28 And these projects are expected to grow in complexity. 18:14:35 So, you should step by step beyond your comfort level and confidence in MATLAB. 18:14:46 So please get the book, start reading through it. The material is already posted on canvas. The projects are already assigned on canvas. So make yourself familiar with the projects that are posted.

18:15:06 So we will study chapter one, we will study chapter two, then we will discuss project one project do. 18:15:28 Chapter five is on linear design models. 18:15:33 Chapter six is on autopilot design. 18:15:39 Chapter seven is on sensors from for miniature air vehicles. 18:15:45 chapter eight is on state estimation. 18:15:49 Chapter nine is on different design models. 18:15:56 Chapter, 10 is on, or a bit following. 18:16:00 So, and chapter, 10, then the most

likely, we will conclude our course at chapter, 10, if there is some time, then I will discuss the next chapter from a few naked last chapters on path planning. 18:16:19 But classroom behavior, I would encourage you to look at the policies on classroom behavior, academic integrity and copyright laws. 18:16:33 So you are expected to work on your own on these projects. 18:16:40 So don't use someone someone else's project as your own project. 18:16:47 So don't plagiarize spend time with

the material, learn. 18:16:57 And if you have any questions, you should let me know. And we are here to help you out. 18:17:06 Please make yourself familiar with the threatening behavior policy harassment and sexual discrimination. 18:17:18 And if you have any. 18:17:20 If you need any assistance. 18:17:23 We are here to help you. So, if you need to coordinate, any of the course learning activity to dr CV will do that. 18:17:37 We will use Canvas. 18:17:40 I would anticipate it to work out

fairly good. 18:17:45 But if there is any internet disruptions. 18:17:49 Do not leave the class. 18:17:53 I would try to log in. 18:17:55 And I would explicitly state. 18:17:59 The class is dismissed before the actual dismissal. 18:18:03 So, unless you get an email from me. Hey, something happened and classes dismissed, or classes cancelled, or something like that. 18:18:16 The class will be, will go on scheduled. 18:18:25 At this point, I would like to ask

if there is, there are any questions, please raise your hand. And I will unmute you, so you can ask me any question on the syllabus. 18:18:53 I don't see any questions on. So, what. Yes. Can you raise your hand on camera, 18:19:07 so that I can, Yeah. 18:19:09 I am going to unmute you. 18:19:15 Yes, Alondra, 18:19:20 ask your question. Yes, I'm just wondering what would be the best location for us to find the book because I can't seem to find it at the ASU bookstore.

18:19:30 The best Amazon. 18:19:32 Okay. 18:19:34 Thank you. 18:19:38 On those contracts. 18:19:42 Okay. 18:19:44 Jessica has a question. 18:19:47 Does anyone else have the same question on on a contract. 18:19:57 Okay. 18:20:02 If you're interested in doing on those contract. 18:20:07 I can certainly offer an honest contract. 18:20:11 But I want to caution you that this course itself, there is significant amount of programming involved. 18:20:25 So make sure that you have time to

do an honors contract. 18:20:36 The most natural honest contract would be either extension of the work that we are doing in this course are actually building a UAV and implementing the autopilot algorithms that we are studying. 18:21:05 But please understand that there may be restrictions, depending upon the location locality. You are too buried slide or run you abs, and autonomous modes. 18:21:26 So, I would be more than happy to discuss potential honors contracts with you.

18:21:34 Either after the class, or maybe after the next class. 18:21:39 But before you decide that you want to do an honors contract. 18:21:44 I would encourage you to look at the material, and the scope of the syllabus, because it's quite vast. 18:21:58 Any other questions. 18:22:07 If you don't have any questions, I would quickly, like to share my canvas screen. 18:22:26 Can you see my canvas screen. 18:22:31 Unfortunately, I don't see any books

here, so I'm not very sure that why you're not seeing the books. 18:22:39 If you go to Canvas. 18:22:43 The syllabus is posted on canvas. 18:22:48 You have all the projects that are listed over here. 18:22:55 You are welcome to click on project one project to project, three. The only project that is not assigned yet his project nine. 18:23:07 Other than that, all the projects are assigned. 18:23:12 Now, if you look at the modules. 18:23:17 I want you to see all the power point slides.

18:23:38 Okay. All the PowerPoint slides are posted over here. 18:23:47 And I'm going to follow these PowerPoint slides, fairly closely. 18:23:53 And these PowerPoint slides. They reflect the material from the textbook. 18:24:01 Next thing I want to show you. Here are the project files. 18:24:08 And if you have a minute, I would encourage you to click download the zip file. 18:24:16 And in this zip file, you will see three folders, one folder is Masson MATLAB

second folder is Masson similar link. 18:24:34 And the third folder is Madsen by Tom. 18:24:39 So, all these projects that are discussed can be done either in MATLAB 18:25:05 Mark law, or in senior link. Or you can use by tone. 18:25:11 So, these are the template sites that you would need to get started. 18:25:20 I don't know where the hiccup is on the textbook, but I will try to sort it out after the class. 18:25:28 But 18:25:31 the book in the syllabus should be

bad book on UAV. 18:25:38 Now, mashing template files. They are super useful, because they give you the basic skeleton code that you have to start working and modified to complete the project. 18:25:56 Now, next thing is the project solution. 18:26:02 The projects that have assigned. 18:26:06 They come from the textbook. End of Chapter project. For an example, project one is the end of chapter two project to his end of chapter three. 18:26:23 So here are the links to the solutions

of the project, which means this is what you should be getting. 18:26:35 If your project is successfully completed. 18:26:40 Now, what I'm gonna do is. 18:26:44 Please note that you will not be alone in this journey. 18:26:48 I will be there to help you. What it means is I anticipate starting and working out some of these project problems with you and get to the point that I will ask all of you. 18:27:08 Hey, this is how far we have gotten the next steps are 123. 18:27:16 Can you do it.

18:27:17 And if the majority of the class says, Yeah, we should be able to do this project from this point onwards, you will you will be doing the project on your own. 18:27:32 So that's why I would anticipate that some of these projects. I would work out about 50 to 60%. 18:27:44 And I would leave the last 40% to 50% for you to complete, or I may work out a similar project. 18:27:57 And you will see the example of that. 18:28:00 And then I will ask you to do the

project using the templates MATLAB code. 18:28:08 So lecture one is the MATLAB code that we will work on today. 18:28:17 Then, Next is a spacecraft. 18:28:21 Then spacecraft to. 18:28:23 So, these schools will help us give us enough background to do the project one. 18:28:32 The link to the video lectures will be posted over here. 18:28:45 The video lectures will be available on YouTube, in 4k, but the links will be here. 18:28:49 There is additional supplement material.

18:28:53 There is something on UAV supplement object drop, if you are going to use your UAV for some sort of drop operation. 18:29:05 If you want to create. 18:29:08 Pat, using Gibbons Pat. 18:29:11 There is feed forward orbit orbit following. 18:29:15 There is a link to a complete simulator in Python. 18:29:20 There is a procedure on how to build autopilot. 18:29:29 And there is a complete simulator. 18:29:33 So this additional material will be useful, and we will use it as needed basis.

18:29:43 Next thing I just want to show you that if you go to assignments, all the assignments should be uploaded here. 18:29:55 And your assignments should be complete. 18:30:00 So if you write a MATLAB code, add comments so that monarch and George can understand what you have done, then upload all the files and upload the research of the simulation. 18:30:18 Now, you can see there are nine projects. No quizzes. 18:30:26 No exam. 18:30:29 And so at this point.

18:30:32 Let me ask you. 18:30:35 If you have any questions. 18:31:00 Okay, sometimes. 18:31:10 That may appear. 18:31:14 But what you do is, yeah, click on the chapter link at the top. That is correct, or what you can do is you can go on to the fights. 18:31:31 And you should be able to download projects, and all the material is in the fights. 18:31:42 So, If there are no questions. 18:31:46 I would like to start that chapter one. 18:31:53 So in this chapter.

18:32:03 It's going to give you a brief background and sort of the motivation for the schools. 18:32:06 So if you look at UFESUAV stand for unmanned aerial vehicle. 18:32:17 Sometimes they are also called remotely operated vehicles. 18:32:23 And they could be small drones that you fly all the way to big drones that are used for military purposes. 18:32:33 You could have a fixed wing aircraft, which means that airplane. 18:32:40 Or you could have a rotary wing aircraft,

like a helicopter. 18:32:46 You could have a quad copter. 18:32:50 You could have an octo copter, or you could have a tilt rotor, which means that can take off as a helicopter. 18:33:00 but fly as a plane. 18:33:05 And depending upon your research interest. You can study different types of platforms. 18:33:15 In this course, we are going to start with a very simple platform that will be fixed wing aircraft, like the one that is shown

in the picture right here. 18:33:29 And the reason for that is understanding these flying robots is simple, simpler than the quad copter, or octo Qantas. 18:33:45 So there are a lot of applications of small you abs. 18:33:50 So you can use for Environment monitoring, communication, law enforcement, agriculture. 18:33:58 There are military applications, and there are security applications. 18:34:04 Now, usually, when you talk about autonomous aircraft.

18:34:12 Those aircrafts are capable of flying on their own. 18:34:19 So usually, they have something called as an autopilot. 18:34:24 And now I want you to look at this autopilot. 18:34:31 So, If you look at this Kestrel autopilot. 18:34:36 There is a microcontroller. 18:34:38 So this is the microcontroller. 18:34:45 If you look at these are the gyroscopes. 18:34:54 This, this is the pressure sensor. 18:35:02 And there are accelerometers

18:35:08 here. 18:35:09 And then these are the outputs for the server. 18:35:16 And these servers, control the control surfaces. 18:35:23 So basically when you want aircraft to fly. 18:35:28 There are control surfaces, there is something called us, l Ron, that is murder. There is speed of the prop. So these different control parameters affect how fast or how slow the aircraft is going to go from point A to point B, and how it's gonna roll, 18:35:48 how it will not page, and so on and

so forth. 18:35:52 So an autopilot system will have different sensors, a microcontroller. 18:35:59 And then some sort of algorithm that will use the data from these different different sensors and control the servers, so that your miniature aircraft slides from location to location, be. 18:36:24 So, there are a lot of USB platforms. 18:36:29 But this is the USB platform that we built an issue about in 2008. 18:36:39 And we flew these platforms.

18:36:42 These are called ads soggy blades, also called flying wing. 18:36:54 And if you want to see the first autonomous aircraft that we built. 18:37:01 You can go to simulator building that aircraft, along with this autopilot is on display. 18:37:09 If you go to my office. 18:37:12 There is a poster describing the fixed wing aircraft and the autopilot, that we built and flew about about 10 years ago. 18:37:25 So, but since then.

18:37:36 The sensors have evolved micro processors have become cheaper, more processing power is available. 18:37:41 And nowadays, there is a lot of emphasis on DIY type drones. 18:38:02 So, this field has evolved from a very small group of people working to almost the hobbyist or students, or even high schoolers working on building and flying the autonomous lanes. 18:38:10 So this is a standard design process for designing UAV.

18:38:21 So what you do is, first you have the requirements, depending upon your requirements you choose a platform you design the platform. 18:38:35 And once you design the platform that is designing the aircraft structure. 18:38:44 Then you design the controllers. 18:38:47 And that is that comes in control design. 18:38:51 And then you integrate airframe are to the control surfaces to the controller. 18:38:59 And in this process, you come up to the static and dynamical models that approximate

the physical system. 18:39:11 The physical systems are typically nonlinear. 18:39:16 They are large, so you will have to come up with some approximations. 18:39:22 So that, that system can be designed and simulated in a, in a reasonable amount of time. 18:39:34 And then, the process is iterative. So you go through the design process and refine, to the point that your simulation is able to reflect the physical system, very accurately.

18:39:53 And the Newton's laws and the language and principles that we studied in last class. 18:40:01 They are going to be used a lot when we study the design and control of us. 18:40:13 This is how an architecture, looks like. 18:40:18 So you have the unmanned vehicle. 18:40:22 On top of it, you have an autopilot running in the inner loop with the sole purpose of stabilizing the aircraft. 18:40:34 So what it means is the autopilot main function is to make sure that the aircraft

does not crash. 18:40:46 Then, there's an outer loop that allows path following, so now we want the aircraft to go from point A to point B. 18:40:59 And then the autopilot sends out the command signals, such a way that the UAE can go from point A to point B. 18:41:15 Then, you want a particular path. So you don't want a straight line motion. You want that aircraft to go from point A to point B to point C, go to different different waypoints.

18:41:30 That is where the Patch Manager comes into picture. 18:41:35 And then on top of it, you have a bad day planet. 18:41:40 So imagine nutcase that you are flying your UAV, and all of a sudden, there is an obstacle or there is a bird, and you want to avoid that obstacle. 18:41:53 So your sensors, should indicate that there is an obstacle, and your algorithm should find an alternate path that will award, the obstacle.

18:42:09 So, that is how the overall structure is sometimes the avoidance obstacle avoidance is implemented using camera. 18:42:25 So you have the vision based guidance, so you have a camera, and you run machine learning algorithms that actually can interpret the picture that the camera is seeing. 18:42:41 Recognizing the shape of the obstacle, the velocity of the obstacle. The location of the obstacle, and then awarding it.

18:42:50 We won't spend a lot of time on region based guidance, but it's an important topic, and that is discussed in schools on robot perception. 18:43:03 So that goes is offered by CDC. 18:43:08 in computer science department. 18:43:10 You're welcome to take that and they will discuss the region based obstacle avoidance tracking path planning, and so on. 18:43:21 And this is the overall structure of the UAV architecture. 18:43:33 So now what I want to do is I want

to give you a brief outline 18:43:42 of chapter two. 18:43:45 So, So we are going to start the next chapter. 18:43:51 But I just want to give you a brief outline. 18:43:54 And then I'm going to work on the MATLAB project. 18:44:00 So, then we are going to study the unmanned aerial vehicles. 18:44:06 First and foremost, we need to understand the basic dynamics of the air vehicle. 18:44:15 So, so why why do the airplanes fly. 18:44:21 What makes, what are the different

aerodynamic forces and moments. How do we control them. 18:44:28 So to do that, we will have to study different forces and different moments in different different coordinate frames. 18:44:43 So, what it is. 18:44:46 So, if you think about it. 18:44:50 We are going to use different reference fades. 18:44:54 And I just want to give you a similarity. 18:44:58 When we studied the robotics one. 18:45:03 We had coordinate frames attached

at different joints. 18:45:07 We found the relationships between the inertial, or fixed coordinate frame. 18:45:14 And then we found out its relationship. The second coordinate frame. next coordinate same, so on and so forth. 18:45:22 And the reason for that is because the end effect forces were in the final end defector coordinate frame, and we had to convert those forces, all the way to the base coordinate frame, because that coordinate frame our motors were located.

18:45:45 So, Please understand, in the case of aircrafts. 18:45:50 You have Vinnie loads. You have different sensors. 18:45:57 So, these different forces, different velocities. 18:46:02 They act in different coordinate frames. 18:46:07 Just to give you an example. 18:46:09 The, the list and drag on the air foil. 18:46:14 The lift and drag on the airplane is in the body frame. 18:46:21 On the other hand, the bat, from

the GPS is in the inner shell frame 18:46:31 lingering and reinforces are in different frame. 18:46:37 So, all these frames are related to each other. 18:46:42 And it is super duper important that the relationship between these different frames is defined, so that we can transfer the forces velocities displacements in inertial frame to the body frame of the aircraft, or to the earth fixed frame, and we can perform 18:47:12 these calculations, or we can simulate

the system, easily. 18:47:22 Now, we are going to start with the very simple, basic coordinate frame rotation. 18:47:31 Believe it or not, We did this in robotics one. 18:47:38 If you recollect in robotics one in the very first class. 18:47:45 He talked about the rotation matrices. 18:47:50 So if you have a coordinate frame. 18:47:56 x naught, and why not. 18:48:08 These to coordinate frames are related, that angle theta. 18:48:16 And I don't, 18:48:20 I don't know if you remember this

or not, but what we did, we drew horizontal and vertical lines 18:48:32 and came up with this solution, he said. 18:48:40 So, x not is equal to 18:48:45 x one, cosine theta minus y one sine theta. 18:48:55 Why not is equal to x one, sine theta. 18:49:04 That's why one. 18:49:07 Cosine data. 18:49:09 That means, And my Xenon is equal to see one. 18:49:16 So my rotation matrix. And this is super important. And I'm going to do this

for this case explicitly. 18:49:26 You have x zero, y 00, you have x one, why one see one. 18:49:39 And you remember this projection 18:49:45 off. 18:49:48 And here, 18:49:52 projection on. 18:49:58 And what we get is cosine data. 18:50:04 Minus sign data scientists data. 18:50:08 Cosine data, 00001. 18:50:17 This equation can also be written as, and I need to be very clear, something like x not, why not z not 18:50:31 is equal to cosine data, minus sine

theta zero. 18:50:49 Sign data. Cosine data, 0001. And here I have x one, why one see one. 18:50:59 Everyone remembers this. 18:51:03 Now, what does that mean it means, if I have a victor. 18:51:10 that Victor could be displacement. 18:51:13 It could be velocity. 18:51:16 It could be force. 18:51:20 If that vector is described in x one, why one z one plane. 18:51:29 The relationship between the x naught, why not see not an x one y z one frame is given by this quotation matrix.

18:51:44 And I just want to make this point, super clear. 18:51:55 So, my ex not, why not. 18:52:01 And this is my ex one. 18:52:11 And why 18:52:11 know. 18:52:21 I one g one. 18:52:25 What do I mean by unit unit collectors, they indicate the direction. 18:52:31 They don't indicate the magnitude. 18:52:34 So the relationship between these unit Victor's hi not Gina cannot 18:52:49 is equal to cosine theta minus sine theta zero, sine theta, cosine data, zero, feel, feel, one.

18:53:09 And then I have high one g one. 18:53:17 And he wants. 18:53:20 Now what does this mean it means. 18:53:25 The idea is, consider for the sake of discussion that I have a victor. 18:53:32 Five. 18:53:33 I won. 18:53:36 If I have a victor five, I one. 18:53:41 And what I need to do is I need to express this five, I won, I need to express five, I won into the base coordinate frame. Right now, this Victor is in the coordinate frame takes 1101. 18:54:02 One z one. But I want this Victor,

to be in the frame. 18:54:07 x zero, y zero and zero. 18:54:12 So what I do this, this super important. 18:54:16 I find the inverse of this matrix, so I'm going to call this matrix ry inverse this matrix, our inverse. 18:54:32 I not g not keen on 18:54:39 is equal to our inverse, multiplied by our, this is a matrix multiplication. 18:54:49 Hi. 18:54:51 Jay, one g one key one. 18:54:56 Now, in worse multicolored by the

matrix, gives you an identity matrix. 18:55:03 One thing I want you to notice that this matrix is an order to normal matrix. 18:55:15 That means, if you find the determinant determinant is. 18:55:22 And all the rows and columns are perpendicular to each other. 18:55:28 It's very easy to verify sine and cosine are 90 degrees out of phase. 18:55:36 So for example, if you were to look at this column. 18:55:41 You have cosine term here. Sign here,

find them here, cosine term here, indicating that these columns are perpendicular to each other. 18:55:54 If you take the determinant of this matrix, the determinant is one. 18:56:01 And you can also see that this role is perpendicular to disrobe. 18:56:08 So this matrix is auto normal. 18:56:11 And for our normal matrix, the inverse is nothing but transpose. 18:56:20 For or to normal matrix, 18:56:25 which means what I could do is just

do the transpose, cosine data scientists data, minus sine theta, cosine data. 18:56:42 00100. 18:56:50 And now I have, I know. 18:56:54 Gina Kanaan is equal to. 18:57:01 I one g one g one. 18:57:10 That means I can rewrite this equation as, I'm just gonna write I won, I won is equal to first row first column, cosine data. 18:57:34 Hi not plus sign data, g not. Plus you. 18:57:31 So, probably, this needs a little

discussion, so please understand what I did. 18:57:37 I multiplied first row, first column. That gives me the first. 18:57:48 Victor high one. So now I have, I one is equal to cosine data, I not plus sign tetra cannot. 18:57:56 So what I can do is 18:58:00 I could start with my analysis, and you'll see it works out very well. 18:58:11 So, I have a victor. 18:58:15 I won. 18:58:17 I not have G not. 18:58:23 And I have G one. 18:58:28 This is five, I won five. High one.

18:58:34 And I can see, if I replaced, five, I, I'm going to call this Victor who he who he is five, I one. 18:58:46 I'm going to replace by by five. 18:58:51 And you can see here. 18:58:53 It's cosine data I not. 18:58:58 So this becomes cosine data. 18:59:04 Hi not plus five sine theta, g not. 18:59:10 Now some of you may say something interesting has happened. 18:59:19 What is this five cosine theta, this five cosine theta is nothing but the projection,

over here, which is fine. 18:59:28 Fine. Take down. 18:59:30 So, this Victor can be represented as five cosine theta i not. 18:59:39 And for five sign tg not. 18:59:46 So this is five cosine that I not in I not. And this is in G not direction. 18:59:55 So we actually transferred of vector. And that could be forced that could be velocity that could be anything. 19:00:06 And we will deal with these things again and again and again and again.

19:00:12 Because the forces will be defined in different frame, the velocities will be defined in different frames. And we had to go from one frame to other frame. 19:00:25 So we are going to study this in detail. But here is the, the takeaway from, from this discussion. 19:00:36 If you are going to go from I zero G zero k zero. 19:00:47 Your matrix is going to look like sine theta minus sign data scientists data, cosine data, 0000 won, 19:01:01 I won. 19:01:04 She won.

19:01:06 She won. 19:01:08 However, and this is super important. This is important. 19:01:12 If you go from. 19:01:16 ij one k one 19:01:25 to Izo g zero, and k zero is zero. 19:01:33 I zero. J zero, 10 k zero. 19:01:37 This matrix gets transpose. 19:01:40 So, when the matrix transpose, the diagonal limit. I'm diagonal elements remain the same, the off diagonal elements, get shifted. 19:01:55 I'm diagonal elements remain the

same, the off diagonal elements, get shifted. So this is the difference. 19:01:58 So this is the zero frame. 19:02:02 See road frame, 19:02:08 frame first coordinate fame. 19:02:13 This is the first frame 19:02:18 to seal sleep. 19:02:25 And why is all this important, because as we go through the material. 19:02:31 We are going to talk about the rotation of the reference trains. 19:02:36 And this is nothing but, the same rotation, that we talked about, but we are

going from the first frame to the zero frame. 19:02:49 So, This is the rotation matrix. 19:02:53 Again, this is the rotation matrix, 19:03:01 then we will talk about active and passive rotations. 19:03:08 Then we will talk about the inertial frame, and the vehicle frame. 19:03:16 We will talk about different angles that defined the orientation of the aircraft. 19:03:25 And these are the same angles that we studied in robotics one roll, pitch and then we will look at vehicle one frame vehicle

to frame. 19:03:39 Then there is something called us, the body frame. 19:03:43 Then we had to find out the relationship between the body frame to inertial frame. 19:03:50 There is something called us, the stability frame. 19:03:57 When frame. 19:03:58 Then the relationship between airspeed wind speed ground speed and different aerodynamic angles that are needed to understand the stability. 19:04:15 At the end we will talk about the vent triangle. 19:04:21 And at the end, There is up project.

19:04:26 Now, again. Don't get scared. This is just the first class, and we have three more classes to discuss this material. 19:04:36 But at this point, I would encourage you to quickly review the project one in this project one. 19:04:46 You think MATLAB. 19:04:48 You have to bury you have to build this aircraft. 19:04:53 And then simulate this aircraft. So think about it like you're making a video game during you ask that aircraft to go left,

right, up, down, rotate, and then the aircraft in the Metalab environment is rotated. 19:05:12 So we, this is the very first project that we are going to study. 19:05:18 So, to understand this project. We need to know how to perform animations in MATLAB and it is absolutely required to look at appendix. 19:05:36 See, of the book, where it shows how the animation in Matlab is done. 19:05:48 Now what I'm going to do is just get all of us started.

19:05:52 I'm gonna show you a MATLAB exercise. 19:05:58 What we are going to do is we are going to simulate a pendulum. 19:06:16 On a thought. So here is the problem. 19:06:07 So first and foremost, we are going to make card in the MATLAB. 19:06:15 Then we are going to add a pendulum. 19:06:18 And then what you're going to do is we are going to animate this card going left and right. 19:06:27 So this is like an inverted pendulum on the card.

19:06:31 But we are not going to solve the dynamical equations of motion. We are just going to perform the animation. 19:06:41 And this example is discussed in detail in appendix. 19:06:46 But what I'm going to do is I'm going to show you and go line by line to the MATLAB code. 19:06:52 So at this point, I would recommend that if you have MATLAB. 19:07:00 Go to MATLAB. 19:07:09 At this point, you should be able to see my screen. 19:07:24 And if you have MATLAB.

19:07:28 Please, open, not LA. 19:07:35 I'm gonna make this font, slightly bigger, so that you can see. 19:07:44 And these files. There is a file called drop base. 19:07:52 Draw rod run me first. 19:07:53 And drop pendulum. 19:07:56 These files are in the project. 19:08:01 The files MATLAB files. 19:08:04 Lecture one. 19:08:05 So download the zip file and expand that zip file, and then be able to have all the files. 19:08:22 In, in one location.

19:08:24 At this point, let me ask you, do you have these files in the MATLAB 19:08:35 environment. 19:08:37 So, there will be a function. They're all pendulum. 19:08:41 That'd be a function, run me first. 19:08:44 That would be a function, there are, there may be a function, drop off base. 19:08:52 And what I want you to do is click on run me, false, and hit run. 19:09:02 And once you start running. 19:09:05 You will see a nice, clean simulation

going on. 19:09:14 I will try to show you how that simulation. 19:09:22 So the same, the pendulum on the car. 19:09:28 And this is just an animation. 19:09:31 There is no dynamical equation of motion. What we are going to do is we are going to simulate a spacecraft. 19:09:40 And then finally, will simulate an airplane. 19:09:44 So before I discuss the court. I just want to make sure that everybody understood,

or does everyone have this simulation running. 19:09:58 I can share screen and show the five. Okay. to show you the fives. 19:10:04 I need to go to Jan works. 19:10:12 So, I want you to go to 19:10:20 Canvas 19:10:26 in Canvas should go to modules in modules, you will should go to MATLAB codes in MATLAB course, go to lecture, one.ca, download an unsaid that lecture one dot rod. 19:10:52 And then you should be able to get this code running.

19:11:04 Now, on when I discuss this school, line by line. 19:11:14 Yeah, for project one spacecraft files are given. 19:11:21 But you have to create an aircraft. 19:11:24 So let me discuss. 19:11:27 Draw bees. 19:11:29 This function is going to draw the purple base. 19:11:35 And how does it do it is you have a function, which is called a draw base takes an input y, which is the CG of the basis, width of the base height of the base gap between the base, and the line.

19:11:54 And I want you to tell you this important thing there is 100. 19:12:09 And then this is the mode for a beating the finger. 19:12:14 What I'm doing here is I'm creating the x coordinate of that law. 19:12:22 So let's most coordinate is y minus with by two. 19:12:26 Then I have wife must with by two. Then I whiteness with by two and y minus with by. 19:12:35 So, if you look at the block. There are four points, and X and Y location, or the location x location and y location of

those points. 19:12:49 Then, in line number four. I'm kicking is the pointer is empty, which means I don't specify a handle, then it will use the MATLAB command, Phil. 19:13:07 To create that law. If I don't, supply the handle, then it will set the handle with the corresponding X and Y data. 19:13:19 So this code is going to draw the block. 19:13:24 This school is drawn rod is going to draw the white, the green line. 19:13:41 The angle. 19:13:43 The length of the rod gap.

19:13:46 Hi, handle, and more. 19:13:49 And think about it this rod actually has two points point zero where the rod is starting and point to where the rod is ending. 19:13:59 So I need to supply x zero, y zero and x one, why one to construct that line. 19:14:09 So this is what it is. So I'm supplying the x zero, y zero and x one, why one. 19:14:24 And then, I'm using the same handle to create the road. 19:14:30 So I draw the base. I'd rather odd. And now I want to draw the pendulum to draw

the pendulum. 19:14:40 I start with the function, drop pendulum require some input. 19:14:47 I need value of why I need value of data, I need the value of time. These three are the inputs. I need the value of Len gap with height. 19:15:01 Hi. I need to construct a pointer. 19:15:05 And if you come, the way to construct a pointer is using the MATLAB command persistence, for that really does not get cleared in the equation.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent