β—€ Back to Note

Tony's Intertwingled Memex β€’ Reference Manual

Autonomous Drone Flight Path Separation (Aerospace & Computer Engineering) Solution

Formulas & Definitions

Problem Overview

We evaluate the 3D spatial relationship between two drone trajectories L1L_1L1​ and L2L_2L2​ and compute the perpendicular clearance distance to verify collision avoidance envelopes.


Step-by-Step Mathematical Solution

Step 1: Formulate Vector and Parametric Equations

State the Parametric Equations of a Line:

rβƒ—(t)=rβƒ—0+tvβƒ—\vec{r}(t) = \vec{r}_0 + t\vec{v}r(t)=r0​+tv
(Defined in Equations of Lines in 3D.)

  • Drone 1 (L1L_1L1​): Through P(2,0,1)P(2, 0, 1)P(2,0,1) with vβƒ—1=⟨1,2,βˆ’1⟩\vec{v}_1 = \langle 1, 2, -1 \ranglev1​=⟨1,2,βˆ’1⟩:
    x1(t)=2+t,y1(t)=2t,z1(t)=1βˆ’tx_1(t) = 2 + t, \quad y_1(t) = 2t, \quad z_1(t) = 1 - tx1​(t)=2+t,y1​(t)=2t,z1​(t)=1βˆ’t
  • Drone 2 (L2L_2L2​): Through Q(1,3,2)Q(1, 3, 2)Q(1,3,2) with vβƒ—2=⟨2,βˆ’1,1⟩\vec{v}_2 = \langle 2, -1, 1 \ranglev2​=⟨2,βˆ’1,1⟩:
    x2(s)=1+2s,y2(s)=3βˆ’s,z2(s)=2+sx_2(s) = 1 + 2s, \quad y_2(s) = 3 - s, \quad z_2(s) = 2 + sx2​(s)=1+2s,y2​(s)=3βˆ’s,z2​(s)=2+s

Step 2: Classify the Spatial Line Relationship

State the Line Classification Protocol: (Defined in Relationships Between Lines in Space.)

  1. Parallel Test: Check direction vector proportionality:
    21β‰ βˆ’12β€…β€ŠβŸΉβ€…β€Švβƒ—1∦vβƒ—2(NotΒ Parallel)\frac{2}{1} \ne \frac{-1}{2} \implies \vec{v}_1 \nparallel \vec{v}_2 \quad (\text{Not Parallel})12​=2βˆ’1β€‹βŸΉv1β€‹βˆ¦v2​(NotΒ Parallel)
  2. Intersection Test: Set rβƒ—1(t)=rβƒ—2(s)\vec{r}_1(t) = \vec{r}_2(s)r1​(t)=r2​(s):
    {2+t=1+2s(1)2t=3βˆ’s(2)1βˆ’t=2+s(3)\begin{cases} 2 + t = 1 + 2s & (1) \\ 2t = 3 - s & (2) \\ 1 - t = 2 + s & (3) \end{cases}βŽ©βŽ¨βŽ§β€‹2+t=1+2s2t=3βˆ’s1βˆ’t=2+s​(1)(2)(3)​
    From (1): t=2sβˆ’1t = 2s - 1t=2sβˆ’1. Substitute into (2):
    2(2sβˆ’1)=3βˆ’sβ€…β€ŠβŸΉβ€…β€Š4sβˆ’2=3βˆ’sβ€…β€ŠβŸΉβ€…β€Š5s=5β€…β€ŠβŸΉβ€…β€Šs=12(2s - 1) = 3 - s \implies 4s - 2 = 3 - s \implies 5s = 5 \implies s = 12(2sβˆ’1)=3βˆ’s⟹4sβˆ’2=3βˆ’s⟹5s=5⟹s=1
    Then t=2(1)βˆ’1=1t = 2(1) - 1 = 1t=2(1)βˆ’1=1. Test (t=1,s=1)(t=1, s=1)(t=1,s=1) in equation (3):
    1βˆ’(1)=?2+(1)β€…β€ŠβŸΉβ€…β€Š0β‰ 3(Inconsistent)1 - (1) \stackrel{?}{=} 2 + (1) \implies 0 \ne 3 \quad (\text{Inconsistent})1βˆ’(1)=?2+(1)⟹0ξ€ =3(Inconsistent)
    Because the system is inconsistent and the direction vectors are non-parallel, L1L_1L1​ and L2L_2L2​ are Skew.

Step 3: Compute Perpendicular Clearance from P(2,0,1)P(2, 0, 1)P(2,0,1) to Line L2L_2L2​

State the Point-to-Line Distance Formula:

d=βˆ₯QPβƒ—Γ—vβƒ—2βˆ₯βˆ₯vβƒ—2βˆ₯d = \frac{\|\vec{QP} \times \vec{v}_2\|}{\|\vec{v}_2\|}d=βˆ₯v2​βˆ₯βˆ₯QP​×v2​βˆ₯​
(Defined in Distance Between a Point and a Line in Space.)

  1. Displacement vector from reference point Q(1,3,2)Q(1, 3, 2)Q(1,3,2) to P(2,0,1)P(2, 0, 1)P(2,0,1):
    QPβƒ—=⟨2βˆ’1,β€…β€Š0βˆ’3,β€…β€Š1βˆ’2⟩=⟨1,βˆ’3,βˆ’1⟩\vec{QP} = \langle 2 - 1, \; 0 - 3, \; 1 - 2 \rangle = \langle 1, -3, -1 \rangleQP​=⟨2βˆ’1,0βˆ’3,1βˆ’2⟩=⟨1,βˆ’3,βˆ’1⟩
  2. Cross product QPβƒ—Γ—vβƒ—2\vec{QP} \times \vec{v}_2QP​×v2​:
    QPβƒ—Γ—vβƒ—2=∣i^j^k^1βˆ’3βˆ’12βˆ’11∣=⟨(βˆ’3)(1)βˆ’(βˆ’1)(βˆ’1),β€…β€Š(βˆ’1)(2)βˆ’(1)(1),β€…β€Š(1)(βˆ’1)βˆ’(βˆ’3)(2)⟩\vec{QP} \times \vec{v}_2 = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ 1 & -3 & -1 \\ 2 & -1 & 1 \end{vmatrix} = \langle (-3)(1) - (-1)(-1), \; (-1)(2) - (1)(1), \; (1)(-1) - (-3)(2) \rangleQP​×v2​=​i^12​j^β€‹βˆ’3βˆ’1​k^βˆ’11​​=⟨(βˆ’3)(1)βˆ’(βˆ’1)(βˆ’1),(βˆ’1)(2)βˆ’(1)(1),(1)(βˆ’1)βˆ’(βˆ’3)(2)⟩
    QPβƒ—Γ—vβƒ—2=βŸ¨βˆ’3βˆ’1,β€…β€Šβˆ’2βˆ’1,β€…β€Šβˆ’1+6⟩=βŸ¨βˆ’4,βˆ’3,5⟩\vec{QP} \times \vec{v}_2 = \langle -3 - 1, \; -2 - 1, \; -1 + 6 \rangle = \langle -4, -3, 5 \rangleQP​×v2​=βŸ¨βˆ’3βˆ’1,βˆ’2βˆ’1,βˆ’1+6⟩=βŸ¨βˆ’4,βˆ’3,5⟩
  3. Compute magnitudes:
    βˆ₯QPβƒ—Γ—vβƒ—2βˆ₯=(βˆ’4)2+(βˆ’3)2+52=16+9+25=50=52\|\vec{QP} \times \vec{v}_2\| = \sqrt{(-4)^2 + (-3)^2 + 5^2} = \sqrt{16 + 9 + 25} = \sqrt{50} = 5\sqrt{2}βˆ₯QP​×v2​βˆ₯=(βˆ’4)2+(βˆ’3)2+52​=16+9+25​=50​=52​
    βˆ₯vβƒ—2βˆ₯=22+(βˆ’1)2+12=4+1+1=6\|\vec{v}_2\| = \sqrt{2^2 + (-1)^2 + 1^2} = \sqrt{4 + 1 + 1} = \sqrt{6}βˆ₯v2​βˆ₯=22+(βˆ’1)2+12​=4+1+1​=6​
  4. Calculate distance ddd:
    d=526=53=533β‰ˆ2.89Β metersd = \frac{5\sqrt{2}}{\sqrt{6}} = \frac{5}{\sqrt{3}} = \frac{5\sqrt{3}}{3} \approx 2.89\text{ meters}d=6​52​​=3​5​=353β€‹β€‹β‰ˆ2.89Β meters

Engineering Conclusion

The perpendicular clearance distance between waypoint PPP and flight corridor L2L_2L2​ is 2.89Β m2.89\text{ m}2.89Β m. Because d=2.89Β mβ‰₯2.0Β md = 2.89\text{ m} \ge 2.0\text{ m}d=2.89Β mβ‰₯2.0Β m, the flight plan fulfills FAA safety clearance criteria and no emergency avoidance maneuver is triggered.