3.5.20 · D1 · HinglishGuidance, Navigation & Control (GNC)

FoundationsSensor fusion — complementary filter (simple), Kalman filter (optimal)

2,578 words12 min read↑ Read in English

3.5.20 · D1 · Physics › Guidance, Navigation & Control (GNC) › Sensor fusion — complementary filter (simple), Kalman filter

Is page par assume kiya gaya hai ki tum kuch nahi jaante. Hum har squiggle ka naam lenge jo parent note ne use kiya, uski picture draw karenge, aur batayenge ki topic us ke bina kyon nahi chal sakta. Upar se neeche padho — har item sirf upar wale items se build hota hai.


1. Angle aur uski rate of change

Socho ek drone aage ki taraf tip ho raha hai. woh angle hai jo body level ground ke saath banati hai. us tipping ki speed hai — bada matlab hai woh tezi se palat raha hai, matlab hai woh jis bhi tilt par hai wahan ruka hua hai.

Figure — Sensor fusion — complementary filter (simple), Kalman filter (optimal)
Figure 1 — Drone pitch (orange arc) se level ground ke upar tilted hai, aur tipping speed (plum arrow) rotation ki direction ke roop mein dikhaya gaya hai. Nose-up ko positive draw kiya gaya hai, jo humara sign convention visually fix karta hai.


2. Integration — rate ko angle mein badalna

Socho ek car ka speedometer (, rate) aur uska odometer (, total). Tum seedha speedometer se distance nahi padhte — tum speed ko time ke saath accumulate karte ho. Yahan bhi aise hi: ek rate sensor tumhe tipping speed batata hai; tum use accumulate karte ho tilt jaanne ke liye.


3. Do sensors: gyroscope aur accelerometer

Figure — Sensor fusion — complementary filter (simple), Kalman filter (optimal)
Figure 2 — 10 seconds mein: true angle (ink), gyro estimate dheere dheere bhatak raha hai kyunki uski bias integrate ho rahi hai (teal drift), aur accelerometer truth ke aas paas noisily bounce kar raha hai lekin kabhi drift nahi karta (orange jitter). Yeh picture kyun fusion exist karta hai — har sensor ki weakness doosre ki strength hai.

Agar yeh shaky lagte hain toh prerequisite reading: Attitude estimation (AHRS) aur Inertial Navigation Systems dikhate hain ki yeh sensors ek real vehicle mein kahan baithe hain.


4. Frequency, low-pass aur high-pass


5. Blend weight aur uska matlab

  • near : "zyaadatar smooth gyro par believe karo."
  • near : "zyaadatar drift-free accel par believe karo."

Yahan (tau) ek time constant hai — "kitne seconds ka gyro trust karun pehle accel ko mujhe wapas kheenchne dun."

Figure — Sensor fusion — complementary filter (simple), Kalman filter (optimal)
Figure 3 — Trust knob action mein: jaise 0 se 1 tak slide karta hai, weight smoothly accel (orange) se gyro (teal) ki taraf shift hoti hai. Do weights mirror images hain jo hamesha 1 mein add hote hain, jo ka discrete echo hai.


6. Uncertainty ek number ke roop mein: variance aur Gaussian

Upar ki har cheez ne ek fixed trust knob use kiya. Kalman filter isko upgrade karta hai apni uncertainty ko ek number ke roop mein track karke. Iske liye humein teen ideas chahiye.

Figure — Sensor fusion — complementary filter (simple), Kalman filter (optimal)
Figure 4 — Do bell curves fuse ho rahi hain: ek wide "unsure prior" (teal) aur ek tighter "measurement" (orange) milakar ek bell (plum) banate hain jo dono se taller aur narrower hai. Narrower = zyada confident — yahi "precisions add" ka geometric matlab hai.


7. Estimate hats aur gain

Kyun do Gaussians multiply karna aur minimum-variance blend chunna "optimal" hai uski deeper theory Bayesian estimation se aati hai; multi-dimensional bookkeeping State-space models se aati hai; aur non-straight-line systems ka version Extended Kalman Filter hai.


Yeh foundations topic ko kaise feed karte hain

Angle theta and rate theta-dot

Integration rate to angle

Gyro drift problem

Gyroscope gives rate

Accelerometer gives absolute angle

Frequency low-pass high-pass

Blend weight alpha

Complementary filter

Gaussian and variance P Q R

Precisions add

Kalman gain K

Kalman filter optimal


Equipment checklist

Right side cover karo aur khud test karo. Agar koi bhi answer surprising lage, toh upar woh item dubara padho.

mein dot ka kya matlab hai?
Rate of change per second — angle kitni tezi se badal raha hai.
ke liye hamara sign convention kya hai?
level hai, nose-up positive hai, nose-down negative hai — aur usi sign ko share karta hai.
Gyro integrate karne se drift kyun hoti hai?
Ek tiny constant bias har tick mein add hoti hai aur errors pile up hoti rehti hain cancel hone ki bajaye.
Kaun sa sensor absolute, drift-free angle deta hai, aur use kya corrupt karta hai?
Accelerometer, gravity ki fixed direction ke zariye; koi bhi non-gravitational linear acceleration (bumps, turns, thrust) tilt reading corrupt karta hai.
Gyro kis frequency band mein trustworthy hai?
High frequency (fast, short-term changes).
Complementary filter ke do filters ko kaunsa rule satisfy karna chahiye?
Unhe 1 mein sum hona chahiye (unity DC gain, no double-counting).
kahan se aata hai?
First-order low-pass ko ek tick par discretize karne se — carried-forward coefficient exactly wahi hai.
, , , mein se har ek kya measure karta hai?
= post-fusion estimate variance, = prior (pre-measurement) variance, = process noise, = measurement noise — sab variances hain.
Bada matlab sensor par zyada trust karo ya kam?
Kam — bada = noisier sensor = chhota gain.
Kalman filter mein kya hai, aur hat ka kya matlab hai?
woh general state hai jo track ho rahi hai (yahan angle); hat ise hamara estimate mark karta hai, true value nahi.
Kalman gain , se alag kaise hai?
har step par current uncertainty se recompute hota hai; frozen hota hai.