element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Personal Blogs
  • Community Hub
  • More
Personal Blogs
NexGen Flight Simuator Flight Simulator 101 or back to college - part 3: Euler Angles
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: phoenixcomm
  • Date Created: 23 Dec 2012 11:40 PM Date Created
  • Views 581 views
  • Likes 2 likes
  • Comments 3 comments
  • flight_simulation
  • matrix_rotations
  • eular_angles
  • quaternion
  • gimbal_lock
  • diy_cockpit
  • feature_tutorial
  • linux
Related
Recommended

Flight Simulator 101 or back to college - part 3: Euler Angles

phoenixcomm
phoenixcomm
23 Dec 2012

Euler Angles are three angles introduced by Leonhard Euler (1776) to describe the orientation of a rigid body. To describe such an orientation in 3-Dimensional Euclidean Space three angles are required.

 

Euler Angles provide a way to represent the 3D orientation of an object using a combination of three rotations about different axes.

 

Body Axes

imageimage
Figure 1 – The Inertial FrameFigure 2 – Yaw rotation into the Vehicle
imageimage

Figure 3 – Yaw and Pitch Rotation Applied

Figure 4 – Yaw, Pitch, and Roll applied

 

Then we define the Euler angles as:

  • α is the angle between the x-axis and the line of nodes.
  • β  is the angle between the z-axis and the Z-axis.
  • γ  is the angle between the line of nodes and the X-axis.

 

So in a flight simulator we have to also deal with the accelerations, along each of the three planes ( pitch, roll, yaw ). They all have an effect on the aircraft. But they are in weird angles. So we have to normalize the aircraft back to normal space as in Figure 1. This is done through a series of matrix rotations. But you can also use Quaternions for the rotation as well. They were first described by Irish mathematician William Rowan Hamilton in 1843

By utilizing quaternions, you can ovoid Gimbal Lock (see below).

 

Figure 1, at right, relate the various system conversions:image

 

  1. Euler to Matrix
  2. Matrix to Euler
  3. Quaternion to Matrix
  4. Matrix to Quaternion
  5. Euler to Quaternion
  6. Quaternion to Euler

 

[The information presented here is derived from a diagram by P.M. O'Neill,

September 1981, and from a NASA training manual on quaternions]

 

To see the complete article please click here.

 

Gimbal Lock Consider a case of a level sensing platform on an aircraft flying due North with its three gimbal axes mutually perpendicular  and  angles each zero. If the aircraft pitches up 90 degrees, the aircraft and platform's Yaw axis gimbal becomes parallel to the Roll axis gimbal, and changes about yaw can no longer be compensated for.

image

image keep tuned in more to come
Cris ~

  • Sign in to reply
  • DAB
    DAB over 12 years ago in reply to phoenixcomm

    True, but they languished in obscurity until the 1980's when someone finally realized how useful they were.

     

    Just a thought,

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • phoenixcomm
    phoenixcomm over 12 years ago in reply to DAB

    They were first described by Irish mathematician William Rowan Hamilton in 1843

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 12 years ago

    I can add a little information here.

     

    The Quaternion concept came about when the initial flight simulations tried to operate near the north and south poles.  Trigonometry does a lot of wierd stuff when angles go to zero, especially when you are dealing with raw latitude and longitude values.

     

    The quaternion matices enable your internal navigation units to smoothly flow from one quadrant to another in these circumstances.  While the math was a little more complex, the change quickly compensated for the zero angle errors for full world wide navigation.

     

    Good post Chris,

     

    DAB

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube