The reference frame transformation from the LVLH frame to the body frame is usually handled through...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The reference frame transformation from the LVLH frame to the body frame is usually handled through the use of either Euler angles or quaternions. (a) Write a function in MATLAB to convert Euler angles to quaternions. The name of the function must be e2q. It must take a 3x1 vector of Euler angles as input and output a 4x1 vector of quaternions. Use the function to convert the Euler angles in Table 1 to quaternions. Case 1 2 3 4 5 6 7 8 [] 中[O] 0 0 -90 90 Case 1 2 0 [°] [°] 0 -90 0 90 90 0 0 0 30 30 35 85 -125 -50 -155 113 -108 24 Table 1: Euler angles to be converted to quaternions. (b) Write a function in MATLAB to convert quaternions to Euler angles. The name of the function must be q2e. It must take a 4x1 vector of quaternions as input and output a 3x1 vector of Euler angles. Use the function to convert the quaternions in Table 2 to Euler angles. 30 -110 (c) Use the e2q function and the data in Table 1 to verify the output of your q2e function. Discuss any differences between the values in Table 1 and the output of your q2e function. 93 90 91 92 0.1976 0.8673 0.2626 0.3738 0.8500 -0.2505 0.4606 0.0521 Table 2: Quaternions to be converted to Euler angles. The reference frame transformation from the LVLH frame to the body frame is usually handled through the use of either Euler angles or quaternions. (a) Write a function in MATLAB to convert Euler angles to quaternions. The name of the function must be e2q. It must take a 3x1 vector of Euler angles as input and output a 4x1 vector of quaternions. Use the function to convert the Euler angles in Table 1 to quaternions. Case 1 2 3 4 5 6 7 8 [] 中[O] 0 0 -90 90 Case 1 2 0 [°] [°] 0 -90 0 90 90 0 0 0 30 30 35 85 -125 -50 -155 113 -108 24 Table 1: Euler angles to be converted to quaternions. (b) Write a function in MATLAB to convert quaternions to Euler angles. The name of the function must be q2e. It must take a 4x1 vector of quaternions as input and output a 3x1 vector of Euler angles. Use the function to convert the quaternions in Table 2 to Euler angles. 30 -110 (c) Use the e2q function and the data in Table 1 to verify the output of your q2e function. Discuss any differences between the values in Table 1 and the output of your q2e function. 93 90 91 92 0.1976 0.8673 0.2626 0.3738 0.8500 -0.2505 0.4606 0.0521 Table 2: Quaternions to be converted to Euler angles.
Expert Answer:
Answer rating: 100% (QA)
ANSWER Here alpha beta and gamma are theta 12 and 3 respecti... View the full answer
Related Book For
Systems analysis and design
ISBN: 978-0136089162
8th Edition
Authors: kenneth e. kendall, julie e. kendall
Posted Date:
Students also viewed these mechanical engineering questions
-
Identify some materials that have a crystalline structure and other that possess a noncrystalline structure. Discuss the difference in properties.
-
Important: Do not just state what the disease or abnormality is, you need to explain how it is related to tissues, organs, or systems in the human body or plant. The name of the disease, both common...
-
Given an array representation of a ternary tree [at most three children] Ar = [A, B ,C,D ,E , null, G, H, null, null, X, null, Z, null, W, null, null, null, null, K] i) Draw the tree. [2] I) Write...
-
Suppose that a surgical ward has gathered the following information for four nursing activities and two types of patients for the current period: Required: 1. Determine the total nursing costs...
-
Logic chips are taken from a container, tested individually, and labeled defective or good. The testing process is continued until either two defective chips are found or five chips are tested in...
-
Why is the freezing of water considered to be a physical change?
-
Panther Racing, LLC, is involved in competitive racing, including the development, maintenance, and operation of a racing team in the IndyCar series. Beginning in 2008, the National Guard annually...
-
Selected financial data of Target and Wal-Mart for 2009 are presented here (in millions). Instructions(a) For each company, compute the following ratios.(1) Current. (2) Receivables turnover. (3)...
-
Describe issues of healthcare provision during economic downturns. Consider some of the ethical issues presented by government financing. Explain with at least three hundred words
-
Honolulu Shirt Shop has very seasonal sales. Assume that for next year management is trying to decide whether to establish a sales budget based on average sales or on sales estimated by quarter. The...
-
In a survey of 3904 adults, 712 oppose allowing transgender students to use the bathrooms of the opposite biological sex. Construct a 99% confidence interval for the population proportion. Interpret...
-
Does Money market instrument meets short term requirements of the borrowers and provides liquidity to the lenders. Why or why not ?Explain
-
Which two of the five most familiar Artificial Intelligence (AI) categories mentioned in our text do you believe can help businesses the most today? Why? And in the future? Why? provide specific...
-
3. TBTF Incorporated rents commercial real estate to locally based businesses. TBTF purchased ks a large office complex on January 2, 2022. In exchange for the real estate, TBTF issued a non-...
-
A consumer spends all her income on jewelry and jeans, and the price of jewelry is three times the price of jeans. In order to maximize her total utility, she should: a. buy three times as much...
-
Which HR competency do you feel is your strongest based on your work experiences? Based on your work experiences, which competency would you like to improve upon? How could you improve on your...
-
Do you know how to calculate the percentage of taxes taken from your weekly, biweekly, or monthly salary?
-
If |62x|>9, which of the following is a possible value of x? A. 2 B. 1 C. 0 D. 4 E. 7
-
Prepare a list of activities for a systems development team for an online travel agent that is setting up a Web site for customers. Now suppose you are running out of time. Describe some of your...
-
What is removed when a relation is converted from 1NF to 2NF?
-
Draw a logical child diagram for Diagram 0 in Problem 7 for the process that adds a new customer if he or she is not currently in the database (has never ordered from Perfect Pizza before).
-
10.A company contracted with a marketing firm to construct software and create a business website. A quote was requested and accepted. Sometime later, the business asked for updates and revisions but...
-
George Oppenheimer, an agent for Wellington Farms of Massachusetts, Inc., had contacted Mark Kiriakou from the Capital Area Food Bank regarding an order for frozen turkey meat. In an exchange of...
-
Extreme Machine manufactures machines and parts for various industries; they have an office in Youngstown, Ohio. Avery Dennison manufactures and sells labels from a plant in Mentor, Ohio. They use...
Study smarter with the SolutionInn App