VR-Forces 5.1.1 Lua Function Documentation

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

NameDescription
Condition_OffTurns off all lights for the aerodrome.
Condition_NVGSets lights to NVG mode for the entire aerodrome.
Condition_AerodromeOnTurns all aerodrome-wide lights to full intensity.
Condition_RunwayDaylightLowTurns all runway lights on for daylight low visibility conditions.
Condition_AerodromeDaylightLowTurns all aerodrome and runway lights on for daylight low visibility conditions.
Condition_RunwayDaylightMediumTurns all runway lights on for daylight medium visibility conditions.
Condition_AerodromeDaylightMediumTurns all aerodrome and runway lights on for daylight medium visibility conditions.
Condition_RunwayDaylightHighTurns all runway lights on for daylight high visibility conditions.
Condition_AerodromeDaylightHighTurns all aerodrome and runway lights on for daylight high visibility conditions.
Condition_RunwayTwilightVeryLowTurns all runway lights on for twilight very low visibility conditions.
Condition_AerodromeTwilightVeryLowTurns all aerodrome and runway lights on for twilight very low visibility conditions.
Condition_RunwayTwilightLowTurns all runway lights on for twilight low visibility conditions.
Condition_AerodromeTwilightLowTurns all aerodrome and runway lights on for twilight low visibility conditions.
Condition_RunwayTwilightMediumTurns all runway lights on for twilight medium visibility conditions.
Condition_AerodromeTwilightMediumTurns all aerodrome and runway lights on for twilight medium visibility conditions.
Condition_RunwayTwilightHighTurns all runway lights on for twilight high visibility conditions.
Condition_AerodromeTwilightHighTurns all aerodrome and runway lights on for twilight high visibility conditions.
Condition_RunwayNightLowTurns all runway lights on for night low visibility conditions.
Condition_AerodromeNightLowTurns all aerodrome and runway lights on for night low visibility conditions.
Condition_RunwayNightMediumTurns all runway lights on for night medium visibility conditions.
Condition_AerodromeNightMediumTurns all aerodrome and runway lights on for night medium visibility conditions.
Condition_RunwayNightHighTurns all runway lights on for night high visibility conditions.
Condition_AerodromeNightHighTurns all aerodrome and runway lights on for night high visibility conditions.



Copyright© 2024 MAK Technologies, Inc. All rights reserved.