Skip to main content

7.1 Quadcopter Asoslari — Nazariya

Hafta: 2 | Masalalar: 25 | Qiyinlik: ⭐⭐⭐


Kirish

Quadcopter — 4 ta propeller bilan uchuvchi dron. Oddiy mexanika, murakkab kontrol.


1. Asosiy Tuzilish

     Motor 1 (CW)          Motor 2 (CCW)
◯━━━━━━━━━━━━━━━━━━━━◯
\ /
\ ┌──┐ /
\ │ │ /
━━━━━│ │━━━━━
/ │ │ \
/ └──┘ \
/ \
◯━━━━━━━━━━━━━━━━━━━━◯
Motor 3 (CCW) Motor 4 (CW)

Motor Yo'nalishlari

  • CW (Clockwise): Motor 1, 4
  • CCW (Counter-Clockwise): Motor 2, 3

Qarama-qarshi aylanish — yaw momentni bekor qiladi.


2. Koordinata Sistemasi

Body Frame (B)

  • X: oldinga
  • Y: o'ngga
  • Z: pastga

World Frame (W)

  • X: shimol
  • Y: sharq
  • Z: pastga (NED) yoki yuqoriga (ENU)

Euler Burchaklari

BurchakBelgiTa'rif
Rollϕ\phiX atrofida aylanish
Pitchθ\thetaY atrofida aylanish
Yawψ\psiZ atrofida aylanish

3. Kuchlar va Momentlar

Thrust (Itarish Kuchi)

Har bir motor:

Ti=kTωi2T_i = k_T \cdot \omega_i^2
  • kTk_T — thrust koeffitsienti
  • ωi\omega_i — motor burchak tezligi (rad/s)

Umumiy thrust:

Ttotal=T1+T2+T3+T4T_{total} = T_1 + T_2 + T_3 + T_4

Drag Moment

Motor aylanishidan moment:

Qi=kQωi2Q_i = k_Q \cdot \omega_i^2

Roll Moment

τϕ=L(T2+T3T1T4)\tau_\phi = L \cdot (T_2 + T_3 - T_1 - T_4)

Pitch Moment

τθ=L(T1+T2T3T4)\tau_\theta = L \cdot (T_1 + T_2 - T_3 - T_4)

Yaw Moment

τψ=Q1Q2+Q3Q4\tau_\psi = Q_1 - Q_2 + Q_3 - Q_4

LL — markaz va motor orasidagi masofa.


4. Hovering (Muallaq Turish)

Hovering sharti:

Ttotal=mgT_{total} = mg T1=T2=T3=T4=mg4T_1 = T_2 = T_3 = T_4 = \frac{mg}{4}

Quvvat

Phover=(mg)3/22ρAP_{hover} = \frac{(mg)^{3/2}}{\sqrt{2\rho A}}
  • ρ\rho — havo zichligi (~1.2 kg/m³)
  • AA — propellerlar yuza

5. Harakat Tenglamalari

Newton-Euler

Chiziqli tezlanish (body frame):

mv˙=RTFg+Tmω×vm\dot{\mathbf{v}} = R^T \mathbf{F}_g + \mathbf{T} - m\boldsymbol{\omega} \times \mathbf{v}

Burchak tezlanish:

Iω˙=τω×IωI\dot{\boldsymbol{\omega}} = \boldsymbol{\tau} - \boldsymbol{\omega} \times I\boldsymbol{\omega}

Soddalashtirilgan Model

Kichik burchaklar uchun:

x¨=(cosϕsinθcosψ+sinϕsinψ)Tm\ddot{x} = (\cos\phi\sin\theta\cos\psi + \sin\phi\sin\psi)\frac{T}{m} y¨=(cosϕsinθsinψsinϕcosψ)Tm\ddot{y} = (\cos\phi\sin\theta\sin\psi - \sin\phi\cos\psi)\frac{T}{m} z¨=cosϕcosθTmg\ddot{z} = \cos\phi\cos\theta\frac{T}{m} - g ϕ¨=τϕIxx\ddot{\phi} = \frac{\tau_\phi}{I_{xx}} θ¨=τθIyy\ddot{\theta} = \frac{\tau_\theta}{I_{yy}} ψ¨=τψIzz\ddot{\psi} = \frac{\tau_\psi}{I_{zz}}

6. Mixer (Kuch Taqsimoti)

Kerakli kuchlar va momentlardan motor tezliklariga:

[Tτϕτθτψ]=[kTkTkTkTLkTLkTLkTLkTLkTLkTLkTLkTkQkQkQkQ][ω12ω22ω32ω42]\begin{bmatrix} T \\ \tau_\phi \\ \tau_\theta \\ \tau_\psi \end{bmatrix} = \begin{bmatrix} k_T & k_T & k_T & k_T \\ -Lk_T & Lk_T & Lk_T & -Lk_T \\ Lk_T & Lk_T & -Lk_T & -Lk_T \\ k_Q & -k_Q & k_Q & -k_Q \end{bmatrix} \begin{bmatrix} \omega_1^2 \\ \omega_2^2 \\ \omega_3^2 \\ \omega_4^2 \end{bmatrix}

Teskari:

[ω12ω22ω32ω42]=M1[Tτϕτθτψ]\begin{bmatrix} \omega_1^2 \\ \omega_2^2 \\ \omega_3^2 \\ \omega_4^2 \end{bmatrix} = M^{-1} \begin{bmatrix} T \\ \tau_\phi \\ \tau_\theta \\ \tau_\psi \end{bmatrix}

7. Kontrol Arxitekturasi

┌─────────────────────────────────────────────────────────────┐
│ POSITION CONTROLLER │
│ (x,y,z)_ref ──> PID ──> attitude_ref + thrust │
└──────────────────────────┬──────────────────────────────────┘

┌──────────────────────────▼──────────────────────────────────┐
│ ATTITUDE CONTROLLER │
│ (φ,θ,ψ)_ref ──> PID ──> rate_ref │
└──────────────────────────┬──────────────────────────────────┘

┌──────────────────────────▼──────────────────────────────────┐
│ RATE CONTROLLER │
│ (p,q,r)_ref ──> PID ──> τ_φ, τ_θ, τ_ψ │
└──────────────────────────┬──────────────────────────────────┘

┌──────────────────────────▼──────────────────────────────────┐
│ MIXER │
│ (T, τ_φ, τ_θ, τ_ψ) ──> Motor PWM │
└─────────────────────────────────────────────────────────────┘

8. Sensorlar

IMU (Inertial Measurement Unit)

  • Gyroscope: Burchak tezlik (p, q, r)
  • Accelerometer: Chiziqli tezlanish

Barometer

Balandlik (havo bosimidan):

h=T0L[(PP0)LRgM1]h = \frac{T_0}{L}\left[\left(\frac{P}{P_0}\right)^{-\frac{LR}{gM}} - 1\right]

GPS

  • Pozitsiya (lat, lon, alt)
  • Tezlik
  • 1-5 Hz update rate

Magnetometer

Yaw burchagi (kompas).


9. Uchish Rejimlari

RejimKontrolFoydalanuvchi
StabilizeAttitudeRoll/pitch/yaw/throttle
Alt HoldAltitudeRoll/pitch/yaw
PositionPositionWaypoints
AutoMission-
AcroRateTo'liq manual

10. Xavfsizlik

Failsafe

  • Batareya past → RTL (Return to Launch)
  • GPS yo'qolishi → Land
  • RC signal yo'qolishi → Hover/RTL

Geofence

Belgilangan hududdan chiqmaydi.


Xulosa

TushunchaFormula
ThrustT=kTω2T = k_T \omega^2
HoveringT=mgT = mg
Roll momentτϕ=L(T2+T3T1T4)\tau_\phi = L(T_2 + T_3 - T_1 - T_4)
KontrolPosition → Attitude → Rate → Mixer

Keyingi Qadam

📝 Masalalar — 25 ta masala yeching!