3.5.3 · D2 · HinglishGuidance, Navigation & Control (GNC)

Visual walkthroughDirection cosine matrix (DCM) — construction from Euler angles

2,374 words11 min read↑ Read in English

3.5.3 · D2 · Physics › Guidance, Navigation & Control (GNC) › Direction cosine matrix (DCM) — construction from Euler angl


Step 1 — "Frame" kya hota hai, aur hum kya translate karne ki koshish kar rahe hain

KYA. Ek frame sirf teen arrows hain jo ek point par chipke hote hain, har ek doosre do se right angle par, har ek ki length 1. Hum do frames ek doosre ke upar draw karte hain:

  • navigation frame — arrows (socho: North, East, Down — world se fixed),
  • body frame — arrows (spacecraft par bolted, toh yeh uske saath ghoomte hain).

Chota sa hat sirf yeh matlab hai "is arrow ki length 1 hai" (ek unit vector). Subscript () teen arrows ko number karta hai.

KYUN. Space mein ek physical direction — jaise "Sun us taraf hai" — har frame mein alag numbers ki list hoti hai. DCM ka poora kaam ek list ko doosri mein convert karna hai. Converter banana se pehle humein do frames aur unke arrows ke beech ka angle dekhna hoga.

PICTURE. Figure mein body frame (magenta) navigation frame (violet) ke relative mein ghuma hua hai. Orange angle woh angle hai jo aur ke beech hai. Us angle par nazar rakho — yeh hamare matrix mein pehla number banta hai.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 2 — Dot product kyon ek cosine hai (apna main tool earn karna)

KYA. Humein woh tool justify karna hoga jo abhi humne use kiya: cosine kyun hota hai?

YEH tool kyun, koi aur kyun nahi? Hum ek aisa single number chahte hain jo bole "do directions kitni aligned hain?" — parallel hone par bada, perpendicular hone par zero, opposing hone par negative. Dot product wahi operation hai jiska exactly yeh behaviour hai, aur unit-length arrows ke liye yeh bina kisi extra scaling ke pure cosine mein simat jaata hai. Isliye matrix cosines se bani hai, tangents ya kisi aur cheez se nahi.

PICTURE. Arrow ko arrow par shadow ki tarah daalo. Shadow ki length hai. Woh shadow length hi entry hai.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 3 — Ek plane mein ek rotation (poori machine ka atom)

KYA. 3D bhool jao abhi ke liye. Frame ko angle se axis (vertical arrow) ke baare mein spin karo. Axis hilta nahi; sirf arrows aur apne shared plane mein swing karte hain. Hum ek fixed point ke naye coordinates nikalte hain.

KYUN. Poora DCM sirf is tarah ke single-axis spins se bana hai. Agar hum ek ko theek kar lein, toh axes ko relabel karke teeno mil jaate hain. Yeh atom hai; Steps 5–6 molecule assemble karte hain.

PICTURE. Ek point radius par, old -axis se angle par baitha hai. Hum axes ko forward se rotate karte hain. Naye axes ke relative mein point ab angle par baitha dikhta hai (yeh se peeche swing karta hua lagta hai).

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 4 — Spin ko matrix ki tarah package karna

KYA. Do equations ko (plus untouched -axis ko) ek grid mein stack karo — ek matrix. Matrix yahan sirf ek bookkeeping table hai: row batata hai ki old coordinates se new-coordinate kaise banao.

Matrix KYUN? Kyunki rotations chain karna tab matrix multiply karna ban jaata hai, aur multiplication ka ek fixed, unambiguous order hota hai. Woh order turns ka physical order encode karega (Step 5).

PICTURE. Figure colour-code karta hai ki Step 3 ka har term kahan jaata hai: top-right, diagonal ke neeche, aur corner mein akela us axis ke liye jiske baare mein humne spin kiya.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 5 — Hum kyun multiply karte hain, aur exactly kis order mein

KYA. 3-2-1 sequence ka matlab hai: pehle yaw axis ke baare mein, phir pitch naye axis ke baare mein, phir roll sabse naye axis ke baare mein. Har turn wahan se shuru hota hai jahan pichla turn chhoda tha.

Order KYUN flip hota hai. Frames ki chain padho: . Vector ke nav-coordinates pehle se hit hote hain, phir result se, phir se. Kyunki pehle apply hone wala operation vector ke sabse paas (rightmost) hona chahiye, isliye physical order likhta hai:

PICTURE. Figure dikhata hai frame teen turns mein step karta hua, aur uske baaju mein matrix product leftward grow hota hua — pehla turn right par, last turn left par.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 6 — Multiplication block by block karna

KYA. Pehle multiply karo, phir se premultiply karo. Matrix multiply = "left table ki row ko right table ke column se dot karo."

Is grouping mein KYUN. Pehle karna yaw+pitch block ko isolate karta hai; phir ke terms sirf lower two rows mein roll stir karte hain (roll row 1 ko akela chhod deta hai). Isliye final matrix ki top row mein koi nahi hota — ek fact jo tum ek nazar mein check kar sakte ho.

PICTURE. Figure top row (pure pitch-yaw, orange) ko lower two rows (roll-mixed, magenta) se highlight karta hai, taaki tum dekh sako ki kahan appear karta hai aur kahan nahi.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 7 — Degenerate case: pitch par gimbal lock

KYA. set karo, toh . Matrix collapse ho jaata hai aur yaw column aur roll pattern ek hi kaam karne lagte hain.

YEH KYUN toot jaata hai. Jab body se seedha upar pitch karta hai, toh yaw axis (originally vertical) aur roll axis (ab vertical) ek hi physical direction mein point karte hain. Kisi ko bhi ghuma lo — body usi line ke baare mein spin karta hai, toh do alag angle-pairs identical attitudes produce karte hain — ek poora degree of freedom gayab ho jaata hai. DCM khud ek perfectly good rotation rehta hai; yeh angle labels hain jo singular ho jaate hain.

PICTURE. Figure dikhata hai yaw aur roll arrows par ek vertical line mein merge hote hue — tum ya kuch bhi twist karo aur body identically respond karta hai.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Step 8 — Small-angle limit: DCM ban jaata hai minus ek skew matrix

KYA. Teeno angles ko tiny hone do. Tab , angle khud (radians mein), aur do chote angles ka koi bhi product negligible hai.

Yeh limit KYUN matter karti hai. Identity ke paas, attitude errors tiny hote hain. Yeh linearised form linearized error-state filter ki poori neenv hai jo real spacecraft par use hota hai.

PICTURE. Figure exact rotation ko uske straight-line small-angle approximation ke upar overlay karta hai — yeh zero ke paas chipke rehte hain aur sirf bade angles ke liye alag hote hain.

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Ek-picture summary

Figure — Direction cosine matrix (DCM) — construction from Euler angles

Ek arc mein poori derivation: do frames → dot product cosines deta hai → ek planar spin → ki tarah package karo → teen spins chained (last leads) → poora → uske do limits (gimbal lock aur small-angle).

Recall Walkthrough ki Feynman retelling

Do log ek hi paper airplane describe karte hain; ek ghoom gaya hai. "Naak udhar point kar rahi hai" translate karne ke liye hum baar baar ek simple sawaal poochte hain: tumhara arrow mera arrow ke along kitna hai? — aur jawaab hamesha ek cosine hota hai (ek arrow ki doosre par shadow). Hum pehle seekhte hain ki ek flat map ko ek angle se spin karo aur naye left/right/up numbers likho; woh chota turn-table hai. Kyunki spacecraft teen baar ghoomta hai — spin, nose tilt, wings roll — hum teen aisi tables stack karte hain. Pakad yeh hai: last turn multiplication ke front par jaata hai, kyunki vector pehle wale turn se milta hai. Inhe multiply karo aur bada DCM appear hota hai, pitch top-right corner mein akela hamare checkpoint ki tarah baitha hai. Pitch ko straight-up push karo aur do turns ek hi axis ke liye ladte hain (gimbal lock); teeno turns ko whispers tak shrink karo aur poori table ban jaati hai "identity minus a tiny skew nudge," jo aise hi flight computers attitude drift track karte hain.

Recall

Har DCM entry cosine kyun hoti hai? ::: Har entry do unit vectors ka dot product hai, aur unit vectors ka dot product unke beech ke angle ka cosine hota hai. 3-2-1 product mein, kaun sa physical turn sabse baayein wala matrix hai? ::: Aakhri wala (roll, ) — kyunki pehla turn vector par pehle act karna chahiye, isliye woh rightmost hota hai. mein koi roll ya yaw kyun nahi hai? ::: Roll () top row ko untouched chhod deta hai aur ka yaw us corner tak nahi pahunchta, isliye sirf pitch usse set karta hai — ek built-in sanity check. Gimbal lock par physically kya hota hai? ::: par yaw aur roll axes align ho jaate hain, toh sirf matter karta hai aur ek degree of freedom kho jaata hai. Small-angle limit mein, turn order kyun matter karna band kar deta hai? ::: Chote angles ke products drop ho jaate hain, bacha rehta hai ; first order tak rotations commute karte hain.

Connections

  • 3.5.03 Direction cosine matrix (DCM) — construction from Euler angles (Hinglish)
  • Quaternions — avoiding gimbal lock
  • Euler angles — kinematic differential equations
  • Rotation group SO(3) and orthogonal matrices
  • Angular velocity and skew-symmetric matrices
  • Kalman filter — linearized attitude error state