mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-12 12:25:39 +08:00
fix(pm): stop sending placeholder taxi_route so backend computes it
The backend computes the real OSM taxi route from airport_icao + stand/runway and falls back to the flow's YAML default on its own. Sending a placeholder taxi_route counted as a caller override and suppressed that computation, so no session ever got a computed route. Drop it from the create payload. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -3707,7 +3707,10 @@ const startMonitoring = async (flightPlan: any, scenario: Scenario) => {
|
|||||||
runway: v.runway || '25R',
|
runway: v.runway || '25R',
|
||||||
qnh: String(v.qnh_hpa ?? '1013'),
|
qnh: String(v.qnh_hpa ?? '1013'),
|
||||||
surface_wind: v.surface_wind || '250/08',
|
surface_wind: v.surface_wind || '250/08',
|
||||||
taxi_route: v.taxi_route || 'A, B',
|
// taxi_route is intentionally NOT sent: the backend computes the real OSM
|
||||||
|
// taxi route (and crossings) from airport_icao + stand/runway, and falls
|
||||||
|
// back to the flow's YAML default on its own. Sending a placeholder here
|
||||||
|
// would count as a caller override and suppress that computation.
|
||||||
aircraft_type: v.acf_type || 'A320',
|
aircraft_type: v.acf_type || 'A320',
|
||||||
cruise_level: v.cruise_flight_level || 'FL360',
|
cruise_level: v.cruise_flight_level || 'FL360',
|
||||||
assigned_squawk: String(v.squawk ?? '2000'),
|
assigned_squawk: String(v.squawk ?? '2000'),
|
||||||
|
|||||||
Reference in New Issue
Block a user