FMS Flight Planning (avionics/flight-management/flight-planning)
Use when the task is flight management system flight planning: waypoint geometry, vertical profile constraint checks, and track distance accounting for a planned route.
Domain quick reference
- A flight plan is a sequence of waypoints and the legs between them; each leg has a great-circle distance.
- The vertical profile must satisfy crossing constraints: floor and ceiling altitudes at waypoints.
- Track distance drives fuel and time planning.
- A flight management system executes the plan under the airborne software lifecycle discipline of DO-178C.
Workflow
- Collect the waypoint sequence with coordinates.
- Compute each leg distance with leg_distance_km.
- Check the planned altitude against every crossing constraint with vertical_constraint_ok.
- Total the track with total_distance_km.
- Gate the plan with flight_plan_ok.
Pitfalls
- Using flat-earth distances on long oceanic legs.
- Ignoring a floor constraint when cleared higher.
- Planning altitude against the wrong constraint pair.
Behavior contract (gate 3)
The leg-distance, constraint, and validity logic is exercised by the gate 3 contract test: scripts/test_flight_planning.py against scripts/flight_planning_logic.py (stdlib unittest, offline). Run: python3 scripts/test_flight_planning.py
Compliance
- Standards referenced, not reproduced: DO-178C text is proprietary (RTCA); the flight planning process here is common methodology, summary-only per standards-map.yaml and brief 06.
- compliance: STANDARDS-REF, gated: false.