generated from phpvms/config_template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
2,634 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
export default class AerosoftA333Airbus { | ||
meta = { | ||
name: 'aerosoft a333', | ||
priority: 2, | ||
sim: 'fsuipc', | ||
} | ||
|
||
features = { | ||
beaconLights: false, | ||
landingLights: false, | ||
navigationLights: false, | ||
strobeLights: false, | ||
taxiLights: false, | ||
flaps: { | ||
0: 'UP', | ||
1: 'CONF 1', | ||
2: 'CONF 1+F', | ||
3: 'CONF 2', | ||
4: 'CONF 3', | ||
5: 'FULL', | ||
}, | ||
} | ||
|
||
/** | ||
* | ||
* @param {string} title The title of the aircraft, lowercased | ||
* @param {string=} icao The ICAO of the aircraft. Might not be available | ||
* @param {string=} config_path Path to the aircraft config. Might not be there | ||
* @return {boolean} | ||
*/ | ||
match(title, icao, config_path) { | ||
// Should match aerosfot + a333/a3 | ||
return ['aerosoft', 'a3'].every((w) => title.includes(w.toLowerCase())) | ||
} | ||
|
||
beaconLights(value) { | ||
return null | ||
} | ||
|
||
landingLights(value) { | ||
return null | ||
} | ||
|
||
navigationLights(value) { | ||
return null | ||
} | ||
|
||
strobeLights(value) { | ||
return null | ||
} | ||
|
||
taxiLights(value) { | ||
return null | ||
} | ||
|
||
/** | ||
* Get the right text for the flaps | ||
* @param {int} value | ||
* @returns {string} | ||
*/ | ||
flaps(value) { | ||
return this.features.flaps[value] || value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
export default class Felis742 { | ||
meta = { | ||
name: 'Felis 742', | ||
priority: 5, | ||
sim: 'xplane', | ||
} | ||
|
||
features = { | ||
beaconLights: false, | ||
landingLights: { | ||
'B742/ext_light/landing_inbd_L_sw': 'int', | ||
'B742/ext_light/landing_inbd_R_sw': 'int', | ||
'B742/ext_light/landing_outbd_L_sw': 'int', | ||
'B742/ext_light/landing_outbd_R_sw': 'int', | ||
}, | ||
logoLights: { | ||
'B742/ext_light/logo_sw': 'int', | ||
}, | ||
navigationLights: false, | ||
strobeLights: false, | ||
taxiLights: { | ||
'B742/ext_light/runway_turnoff_L_sw': 'int', | ||
'B742/ext_light/runway_turnoff_R_sw': 'int', | ||
}, | ||
wingLights: { | ||
'B742/ext_light/wing_sw': 'int', | ||
}, | ||
flaps: { | ||
0: 'UP', | ||
1: 'CONF 1', | ||
2: 'CONF 1+F', | ||
3: 'CONF 2', | ||
4: 'CONF 3', | ||
5: 'FULL', | ||
}, | ||
} | ||
|
||
/** | ||
* Determine if this config map should be used for the given aircraft | ||
* | ||
* @param {string} title The title of the aircraft, lowercased | ||
* @param {string=} icao The ICAO of the aircraft. Might not be available | ||
* @param {string=} config_path Path to the aircraft config. Might not be there | ||
* @return {boolean} | ||
*/ | ||
match(title, icao, config_path) { | ||
return ['boeing', '747-200'].every((w) => title.includes(w.toLowerCase())) | ||
} | ||
|
||
beaconLights(value) { | ||
return null | ||
} | ||
|
||
landingLights(inbd_l, inbd_r, outb_l, outb_r) { | ||
return inbd_l === 1 && inbd_r === 1 && outb_l === 1 && outb_r === 1 | ||
} | ||
|
||
logoLights(value) { | ||
return value === 1 | ||
} | ||
|
||
navigationLights(value) { | ||
return null | ||
} | ||
|
||
strobeLights(value) { | ||
return null | ||
} | ||
|
||
taxiLights(turnoff_l, turnoff_r) { | ||
return turnoff_l === 1 && turnoff_r === 1 | ||
} | ||
|
||
wingLights(value) { | ||
return value === 1 | ||
} | ||
|
||
/** | ||
* Get the right text for the flaps | ||
* @param {int} value | ||
* @returns {string} | ||
*/ | ||
flaps(value) { | ||
return this.features.flaps[value] || value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
export default class FenixA320 { | ||
meta = { | ||
name: 'Fenix A320', | ||
priority: 4, | ||
sim: 'msfs', | ||
author: 'B.Fatih KOZ <https://github.com/FatihKoz>', | ||
} | ||
|
||
features = { | ||
landingLights: { | ||
S_OH_EXT_LT_LANDING_L: 'int', | ||
S_OH_EXT_LT_LANDING_R: 'int', | ||
}, | ||
beaconLights: { | ||
S_OH_EXT_LT_BEACON: 'int', | ||
}, | ||
navigationLights: { | ||
S_OH_EXT_LT_NAV_LOGO: 'int', | ||
}, | ||
strobeLights: { | ||
S_OH_EXT_LT_STROBE: 'int', | ||
}, | ||
taxiLights: { | ||
S_OH_EXT_LT_NOSE: 'int', | ||
}, | ||
flaps: { | ||
0: 'UP', | ||
1: 'CONF 1', | ||
2: 'CONF 1+F', | ||
3: 'CONF 2', | ||
4: 'CONF 3', | ||
5: 'FULL', | ||
}, | ||
} | ||
|
||
match(title, icao, config_path) { | ||
return ( | ||
['Fenix', 'A320'].every((w) => title.includes(w.toLowerCase())) || | ||
['FenixA320'].every((w) => title.includes(w.toLowerCase())) | ||
) | ||
} | ||
|
||
beaconLights(value) { | ||
return value === 1 | ||
} | ||
|
||
landingLights(left, right) { | ||
return left === 2 && right === 2 | ||
} | ||
|
||
navigationLights(value) { | ||
return value === 1 || value === 2 | ||
} | ||
|
||
strobeLights(value) { | ||
if (value === 1) { | ||
return null | ||
} | ||
|
||
return value === 2 | ||
} | ||
|
||
taxiLights(value) { | ||
return value === 1 || value === 2 | ||
} | ||
|
||
flaps(value) { | ||
return this.features.flaps[value] || value | ||
} | ||
} |
Oops, something went wrong.