lightDataUtils
(For high level concepts about how to use Lua to write scripted tasks, please see VR-Forces User's Guide.)
Summary
Defines tables that contain data that can be used in changing runway/aerodrome light settings to some predefined states. There are very many different possible light settings, but these provide some basic settings that are good for use under normal conditions.
Dependencies
Please make sure that this is preceded by these inclusions:
require "vrfutil" Usage
local ldu = require "lightDataUtils"
vrf:sendSetData(this, "set-aerodrome-lights", {intensities=ldu.Condition_AerodromeDaylightLow}) Table Construction
Each of the tables defined here can be used to set the intensities parameter to a set-aerodrome-lights set request. Each table has several rows, each one setting a light condition for a different light group. Each of these rows has three values:- target - The specific part of the aerodrome targeted. Possible values are:
- "All" - Targets all lights at this aerodrome that match the specified lightgroup
- "Aerodrome" - Targets aerodrome-wide lighting (i.e. lighting not associated with a runway).
- A runway name - Targets the lights of a specific runway.
- lightgroup - The name of the lightgroup being set within the specified target. The following lightgroups are defined:
- All
- RunwayGuard
- Approach
- Edge
- CenterLine
- DistanceToGo
- DisplacedThreshold
- PrethresholdEdgeLight
- ThresholdLighting
- RapidExitTaxiwayLight
- RunwayExitLight
- TaxiwayLeadOnLight
- TaxiwayStopBarLight
- REILS
- ApronLight
- ApronFloodLight
- ClearanceBarLight
- ObstructionLight
- TaxiwayCentreLight
- TaxiwayEdgeLight
- TaxiwayGuardLight
- TaxiwayIdentifierMarkerBoardLight
- intensity - An integer value from 0 to 100 indicating the intensity of the light. 0 is off, 100 is full intensity.
Tables
| Name | Description |
|---|---|
| Condition_Off | Turns off all lights for the aerodrome. |
| Condition_NVG | Sets lights to NVG mode for the entire aerodrome. |
| Condition_AerodromeOn | Turns all aerodrome-wide lights to full intensity. |
| Condition_RunwayDaylightLow | Turns all runway lights on for daylight low visibility conditions. |
| Condition_AerodromeDaylightLow | Turns all aerodrome and runway lights on for daylight low visibility conditions. |
| Condition_RunwayDaylightMedium | Turns all runway lights on for daylight medium visibility conditions. |
| Condition_AerodromeDaylightMedium | Turns all aerodrome and runway lights on for daylight medium visibility conditions. |
| Condition_RunwayDaylightHigh | Turns all runway lights on for daylight high visibility conditions. |
| Condition_AerodromeDaylightHigh | Turns all aerodrome and runway lights on for daylight high visibility conditions. |
| Condition_RunwayTwilightVeryLow | Turns all runway lights on for twilight very low visibility conditions. |
| Condition_AerodromeTwilightVeryLow | Turns all aerodrome and runway lights on for twilight very low visibility conditions. |
| Condition_RunwayTwilightLow | Turns all runway lights on for twilight low visibility conditions. |
| Condition_AerodromeTwilightLow | Turns all aerodrome and runway lights on for twilight low visibility conditions. |
| Condition_RunwayTwilightMedium | Turns all runway lights on for twilight medium visibility conditions. |
| Condition_AerodromeTwilightMedium | Turns all aerodrome and runway lights on for twilight medium visibility conditions. |
| Condition_RunwayTwilightHigh | Turns all runway lights on for twilight high visibility conditions. |
| Condition_AerodromeTwilightHigh | Turns all aerodrome and runway lights on for twilight high visibility conditions. |
| Condition_RunwayNightLow | Turns all runway lights on for night low visibility conditions. |
| Condition_AerodromeNightLow | Turns all aerodrome and runway lights on for night low visibility conditions. |
| Condition_RunwayNightMedium | Turns all runway lights on for night medium visibility conditions. |
| Condition_AerodromeNightMedium | Turns all aerodrome and runway lights on for night medium visibility conditions. |
| Condition_RunwayNightHigh | Turns all runway lights on for night high visibility conditions. |
| Condition_AerodromeNightHigh | Turns all aerodrome and runway lights on for night high visibility conditions. |
