Translating Euler Angles

From SoftMC-Wiki
Revision as of 12:24, 23 December 2015 by Miborich (talk | contribs) (Created page with "= Translating Euler Angles = Default system representation of Yaw-Pitch-Roll as a sequence of ZYZ can be transformed into XYZ sequence back and forth using the following bui...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Translating Euler Angles

Default system representation of Yaw-Pitch-Roll as a sequence of ZYZ can be transformed into XYZ sequence back and forth using the following built-in functions:


function RBT_XYZ2ZYZ(byval xyz as location of xyzypr, byval zyz as location of xyzypr) as long
function RBT_ZYZ2XYZ(byval zyz as location of xyzypr,byval xyz as location of xyzypr) as long


PROTO.PRO

First of all you need to add the following lines into proto.pro file:

function RBT_XYZ2ZYZ(byval xyz as location of xyzypr, byval zyz as location of xyzypr) as long
function RBT_ZYZ2XYZ(byval zyz as location of xyzypr,byval xyz as location of xyzypr) as long

after issuing reset all you should be able to convert the angels: