Skip to main content
useLandingAnalysis provides real-time access to touchdown detection, bounce counting, and settled landing analysis. It hydrates from GET /api/simulator/landing-analysis/snapshot on mount, then updates on flight:landing Socket.io events. The hook only re-renders when a landing-relevant event occurs — not on every simulator data tick. Landing data resets automatically when a new tracking session starts.

Import

Signature

Parameters

Return value

Types

BounceData

Each entry in touchdowns represents one touchdown contact. See BounceData for the full shape.

CapturePoint

Approach data captured when the aircraft enters the final approach phase. See CapturePoint for the full shape.

LandingAnalysis

Populated after the aircraft settles (weight on wheels stabilizes). See LandingAnalysis for the full shape (includes the nested GateCapture snapshot at ~50 ft AGL).

Usage

Display landing rate after touchdown

Show detailed analysis after settling

Notes

  • landingRate is null until a settled landing is detected. During a bounce sequence it updates per bounce.
  • The select option is passed directly to TanStack Query’s structural sharing. The component will not re-render if the selected value is deeply equal to the previous value.
  • Landing data resets when FlightEventPipeline.startTracking() is called at the beginning of a new flight — previous session data is not preserved across flights.