3.5.10 · HinglishGuidance, Navigation & Control (GNC)

Converting between DCM, quaternions, Euler angles

1,619 words7 min readRead in English

3.5.10 · Physics › Guidance, Navigation & Control (GNC)

Teen tarike ek hi baat kehne ke: "frame B, frame A ke relative kitna rotated hai?" Trick yeh hai ki teeno 'languages' ke beech translate karna aata ho bina information khoye (gimbal lock, sign flips, normalization drift).


1. The anchor: axis–angle (sab kuch yahan se derive hota hai)

Yahan se kyun shuru karein? Kyunki DCM aur quaternion dono ka axis–angle se ek saaf formula hai, toh hum dono derive karte hain, phir compose karte hain.

**Teen terms kaise mile (Har step kyun?): ** ko ke along (unchanged) aur perpendicular parts mein decompose karo. Perpendicular part apne plane mein rotate hota hai; use rakhta hai, -rotated companion deta hai jo se scale hota hai. Along-axis part last term se restore hota hai.


2. DCM ⇄ Quaternion

Figure — Converting between DCM, quaternions, Euler angles

3. Euler angles (3-2-1 aerospace / yaw-pitch-roll)


Worked examples


Common mistakes


Flashcards

Euler's rotation theorem kehta hai
koi bhi orientation = ek fixed axis ke baare mein angle ka ek rotation.
Quaternion mein half rotation angle kyun use hota hai?
sandwich product rotation do baar apply karta hai, toh half-angle doubling ko cancel karta hai (saath hi identical rotations banaata hai).
DCM→quaternion mein sabse bade se kyun divide karte hain?
~0 se divide hone se bachne ke liye jab woh component small ho (jaise near ); Shepperd's method.
DCM se quaternion ka vector part kya isolate karta hai?
antisymmetric part: , etc.
ka trace kya hota hai?
, jisse milta hai.
3-2-1 sequence mein gimbal lock kya hai?
pitch par do axes align ho jaate hain; yaw aur roll indistinguishable ho jaate hain (sirf determined hota hai).
Euler extraction ke liye atan ki jagah atan2 kyun?
atan2 dono arguments ka sign rakhta hai → poore par sahi quadrant.
Quaternion↔Euler convert karne ka best tarika?
DCM ko neutral hub ki tarah use karo (kam error-prone formulas).
aur
.
Kya aur ek hi DCM dete hain?
haan ( mein quadratic map hai).
Integration ke har step mein quaternions renormalize kyun karein?
drift se ho jaata hai, ki orthonormality break ho jaati hai.

Recall Feynman: 12-saal ke bacche ko samjhao

Ek toy plane imagine karo. Yeh batane ke teen tarike hain ki woh kis taraf pointed hai: (1) ek chhoti table likhо jisme batao ki uski naak, wing aur belly kahan point kar rahi hai (yeh hai matrix) — bahut complete lekin bahut saare numbers; (2) char numbers ka ek jadui set jo kabhi confuse nahi hota chahe plane ulta loop bhi kare (quaternion); (3) teen saade words — kitna left muda, kitna upar jhuka, aur kitna sideways rolled (Euler angles) — kehna aasaan lekin jab plane seedha upar point kare toh "stuck" ho jaate hain. Converting bas usi pointing-direction ko kisi aur language mein likhna hai. Table (matrix) ko common dictionary ki tarah use karo.

Connections

Concept Map

guarantees

Rodrigues formula

half-angle

substitute into Rodrigues

Shepperd trick

recover

used to

used to

used to

suffers from

avoids

Axis-angle e, Phi

Euler rotation theorem

DCM C 3x3 matrix

Quaternion q0..q3

Euler angles roll pitch yaw

Rotate vectors

Propagate attitude

Report to human

Gimbal lock singularity

Shepperd trick via trace