Added more flight phases from ADREP

This commit is contained in:
Nabeel Shahzad 2018-04-16 09:33:45 -05:00
parent 63c5d69e10
commit 2319a8c9f4
2 changed files with 69 additions and 46 deletions

View File

@ -6,7 +6,8 @@ use App\Interfaces\Enum;
/** /**
* Tied to the ACARS statuses/states. * Tied to the ACARS statuses/states.
* Corresponds to values from AIDX * Corresponds to values from AIDX and ICAO ADREP
* https://www.skybrary.aero/index.php/Flight_Phase_Taxonomy
* @package App\Models\Enums * @package App\Models\Enums
*/ */
class PirepStatus extends Enum class PirepStatus extends Enum
@ -15,33 +16,49 @@ class PirepStatus extends Enum
public const SCHEDULED = 'SCH'; public const SCHEDULED = 'SCH';
public const BOARDING = 'BST'; public const BOARDING = 'BST';
public const RDY_START = 'RDT'; public const RDY_START = 'RDT';
public const PUSHBACK_TOW = 'PBT';
public const DEPARTED = 'OFB'; // Off block public const DEPARTED = 'OFB'; // Off block
public const RDY_DEICE = 'DIR'; public const RDY_DEICE = 'DIR';
public const STRT_DEICE = 'DIC'; public const STRT_DEICE = 'DIC';
public const GRND_RTRN = 'GRT'; public const GRND_RTRN = 'GRT'; // Ground return
public const TAXI = 'TXI'; // Taxi
public const TAKEOFF = 'TOF';
public const INIT_CLIM = 'ICL';
public const AIRBORNE = 'TKO'; public const AIRBORNE = 'TKO';
public const ENROUTE = 'ENR';
public const DIVERTED = 'DV'; public const DIVERTED = 'DV';
public const APPROACH = 'TEN'; public const APPROACH = 'TEN';
public const APPROACH_ICAO = 'APR';
public const ON_FINAL = 'FIN'; public const ON_FINAL = 'FIN';
public const LANDING = 'LDG';
public const LANDED = 'LAN'; public const LANDED = 'LAN';
public const ARRIVED = 'ONB'; // On block public const ARRIVED = 'ONB'; // On block
public const CANCELLED = 'DX'; public const CANCELLED = 'DX';
public const EMERG_DECENT = 'EMG';
protected static $labels = [ protected static $labels = [
PirepStatus::INITIATED => 'system.pireps.status.initialized', PirepStatus::INITIATED => 'system.pireps.status.initialized',
PirepStatus::SCHEDULED => 'system.pireps.status.scheduled', PirepStatus::SCHEDULED => 'system.pireps.status.scheduled',
PirepStatus::BOARDING => 'system.pireps.status.boarding', PirepStatus::BOARDING => 'system.pireps.status.boarding',
PirepStatus::RDY_START => 'system.pireps.status.ready_start', PirepStatus::RDY_START => 'system.pireps.status.ready_start',
PirepStatus::PUSHBACK_TOW => 'system.pireps.status.push_tow',
PirepStatus::DEPARTED => 'system.pireps.status.departed', PirepStatus::DEPARTED => 'system.pireps.status.departed',
PirepStatus::RDY_DEICE => 'system.pireps.status.ready_deice', PirepStatus::RDY_DEICE => 'system.pireps.status.ready_deice',
PirepStatus::STRT_DEICE => 'system.pireps.status.deicing', PirepStatus::STRT_DEICE => 'system.pireps.status.deicing',
PirepStatus::GRND_RTRN => 'system.pireps.status.ground_ret', PirepStatus::GRND_RTRN => 'system.pireps.status.ground_ret',
PirepStatus::TAXI => 'system.pireps.status.taxi',
PirepStatus::TAKEOFF => 'system.pireps.status.takeoff',
PirepStatus::INIT_CLIM => 'system.pireps.status.initial_clb',
PirepStatus::AIRBORNE => 'system.pireps.status.enroute', PirepStatus::AIRBORNE => 'system.pireps.status.enroute',
PirepStatus::ENROUTE => 'system.pireps.status.enroute',
PirepStatus::DIVERTED => 'system.pireps.status.diverted', PirepStatus::DIVERTED => 'system.pireps.status.diverted',
PirepStatus::APPROACH => 'system.pireps.status.approach', PirepStatus::APPROACH => 'system.pireps.status.approach',
PirepStatus::APPROACH_ICAO => 'system.pireps.status.approach',
PirepStatus::ON_FINAL => 'system.pireps.status.final_appr', PirepStatus::ON_FINAL => 'system.pireps.status.final_appr',
PirepStatus::LANDING => 'system.pireps.status.landing',
PirepStatus::LANDED => 'system.pireps.status.landed', PirepStatus::LANDED => 'system.pireps.status.landed',
PirepStatus::ARRIVED => 'system.pireps.status.arrived', PirepStatus::ARRIVED => 'system.pireps.status.arrived',
PirepStatus::CANCELLED => 'system.pireps.status.cancelled', PirepStatus::CANCELLED => 'system.pireps.status.cancelled',
PirepStatus::EMERG_DECENT => 'system.pireps.status.emerg_decent',
]; ];
} }

View File

@ -74,17 +74,23 @@ return [
'scheduled' => 'Scheduled', 'scheduled' => 'Scheduled',
'boarding' => 'Boarding', 'boarding' => 'Boarding',
'ready_start' => 'Ready for start', 'ready_start' => 'Ready for start',
'push_tow' => 'Pushback/towing',
'departed' => 'Departed', 'departed' => 'Departed',
'ready_deice' => 'Ready for de-icing', 'ready_deice' => 'Ready for de-icing',
'deicing' => 'De-icing in progress', 'deicing' => 'De-icing in progress',
'ground_ret' => 'Ground return', 'ground_ret' => 'Ground return',
'taxi' => 'Taxi',
'takeoff' => 'Takeoff',
'initial_clb' => 'Initial Climb',
'enroute' => 'Enroute', 'enroute' => 'Enroute',
'diverted' => 'Diverted', 'diverted' => 'Diverted',
'approach' => 'Approach', 'approach' => 'Approach',
'final_appr' => 'Final approach', 'final_appr' => 'Final approach',
'landing' => 'Landing',
'landed' => 'Landed', 'landed' => 'Landed',
'arrived' => 'Arrived', 'arrived' => 'Arrived',
'cancelled' => 'Cancelled', 'cancelled' => 'Cancelled',
'emerg_decent' => 'Emergency decent',
] ]
], ],