Skip to content

Realops: Prefile Button #659

@coredoesdev

Description

@coredoesdev

Description
Add the ability for pilots to prefile realops flights they own directly with VATSIM at the click of a button.
Complex issue - requires multiple routines - see dev notes!

Acceptance Criteria

  • Maintain an up-to-date list of PRDs in the database
  • For each realops flight in the database, attempt to load the PRD from said database and use it to generate an ICAO FPL message
  • Add a button that prefiles (see dev notes) the FPL for the flight
  • Add a second button that sends the FPL to SimBrief (see dev notes)

Accepted By:

Dev Notes

ICAO FPL format:

(FPL-ACID-RT
-ATYP/WTC-EQUIP
-DEPTIME
-CSLVLRT
-DSTTIME ALT1 ALT2
-RMK)

Example:
(FPL-AAL2782-IS
-A20N/M-SDE2E3FGHIJ1RWXY/LB1
-KCLT0223
-N0420F280 BOBZY5 TNSLY DCT LEAVI OZZZI1
-KATL0041 KHSV
-PBN/A1B1C1D1O1S2 DOF/240918 REG/HBJDF SEL/KQFD CODE/4B1817 OPR/AAL PER/C RMK/TCAS)

ACID AAL2782
FLIGHT RULES IFR
FLIGHT TYPE SCHEDULED AIR SERVICE
AC A20N WAKE M
EQUIP SDE2E3FGHIJ1RWXY/LB1
DEP KCLT @ 0223Z
CRUSE 420 FL280 RT BOBZY5 TNSLY DCT LEAVI OZZZI1
ARR KATL @ 0041, ALT1 KHSV
RMK PBN/A1B1C1D1O1S2 DOF/240918 REG/HBJDF SEL/KQFD CODE/4B1817 OPR/AAL PER/C RMK/TCAS

See ICAO 4444 apd 2 for more details.

PRD: https://www.fly.faa.gov/rmt/data_file/prefroutes_db.csv
Updated every 56d starting 10/31/24 (last update 09/05/2024)

Prefile link: https://my.vatsim.net/pilots/flightplan?raw=ICAO_FPL
BETA Prefile link: https://my.vatsim.net/pilots/flightplan/beta?raw=ICAO_FPL

Simbrief documentation: https://developers.navigraph.com/docs/simbrief/using-the-api#api-parameters
https://www.simbrief.com/system/dispatch.php?airline=NKS&fltnum=1050&type=A20N&orig=KMCO&dest=KPNS&cpt=Bruce Yang&manualrmk=Flight made for Strato.xyz&callsign=NKS1050&units=LBS

XD Notes

Working Branch
realops-prefile-button-v2

PR
#837

Feature Toggle

QA Notes

Deployment Notes

Metadata

Metadata

Assignees

Labels

Approved by WMThis project is approved - work may begin nowenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions