Module HOUND.DB

Hound databases

Tables

HOUND.DB.PHONETICS Enums for Phonetic AlphaBet
HOUND.DB.useDMM Units that use DMM format
HOUND.DB.useMGRS Units that prefer MGRS format (not in use)
HOUND.DB.Bands Band vs wavelength
HOUND.DB.RadarType Radar types ENUM
HOUND.DB.CALLSIGNS Hound callsigns
HOUND.DB.HumanUnits Hound Human Units automatically generate list containing mist style Unit entries for human flights
HOUND.DB.Radars Radar database
HOUND.DB.Platform Valid platform parameters

DB functions

HOUND.DB.getRadarData (typeName) Get radar object Data
HOUND.DB.isValidPlatform (candidate) check if canidate Object is a valid platform
HOUND.DB.getPlatformData (DcsObject) Get Platform data
HOUND.DB.getDefraction (wavelength, antenna_size) Get defraction for band and effective antenna size return angular resolution
HOUND.DB.getApertureSize (DcsObject) get Effective Aperture size for platform
HOUND.DB.getEmitterBand (DcsUnit) Get emitter Band
HOUND.DB.getEmitterFrequencies (bands, factor) Generate uniqe radar frequencies for contact
HOUND.DB.getSensorPrecision (platform, emitterFreq) Elint Function - Get sensor precision
HOUND.DB.updateHumanDb (coalitionId) populate the HOUND.DB.HumanUnits db
HOUND.DB.cleanHumanDb (coalitionId) cleanup the HOUND.DB.HumanUnits db from disconnected units.
HOUND.DB.generateMistDbEntry (DcsUnit) create a partial "humanByName" mist record from unit use subset of mist format https://github.com/mrSkortch/MissionScriptingTools/blob/master/Example%20DBs/mist_DBs_humansByName.lua


Tables

HOUND.DB.PHONETICS
Enums for Phonetic AlphaBet

Fields:

  • Characters Phonetic representation

Usage:

    ['A'] = "Alpha"
HOUND.DB.useDMM
Units that use DMM format

Fields:

  • UnitType Bool Value

Usage:

    ['F-16C_blk50'] = true
HOUND.DB.useMGRS
Units that prefer MGRS format (not in use)

Fields:

  • UnitType Bool value

Usage:

    ['A-10C'] = true
HOUND.DB.Bands
Band vs wavelength

Fields:

  • Band wavelength in meters of the highest frequency in the range and the diff from the lowest frequency

Usage:

    ['E'] = {0.099931,0.049965}
HOUND.DB.RadarType
Radar types ENUM

Fields:

  • Radar type in hex

Usage:

    ['EWR'] = 0x01
HOUND.DB.CALLSIGNS
Hound callsigns

Fields:

  • NATO list of RC-135 callsigns (source: https://henney.com/chm/callsign.htm)
  • GENERIC list of generic callsigns for hound, mostly vacuum cleaners and fictional detectives
HOUND.DB.HumanUnits
Hound Human Units automatically generate list containing mist style Unit entries for human flights

Fields:

  • byName
HOUND.DB.Radars
Radar database

Fields:

  • string Name NATO Name
  • table Band Radio Band the radar operates in true is when tracking target
  • table Band Radio Band the radar operates in true is when tracking target
  • table Band Radio Band the radar operates in true is when tracking target
  • bool Primary set to True if this is a primary radar for site (usually FCR)

Usage:

    ['p-19 s-125 sr'] = {
        ['Name'] = "Flat Face",
        ['Assigned'] = {"SA-2","SA-3"},
        ['Role'] = {HOUND.DB.RadarType.SEARCH},
        ['Band'] = {
             [true] = HOUND.DB.Bands.C,
             [false] = HOUND.DB.Bands.C
         },
        ['Primary'] = false
    }
    
HOUND.DB.Platform
Valid platform parameters

Fields:

  • UnitTypeName contains table of properties

Usage:

    ['C-130'] = {antenna = {size = 35, factor = 1}}

DB functions

HOUND.DB.getRadarData (typeName)
Get radar object Data

Parameters:

  • typeName DCS Tye name

Returns:

    Radar information table
HOUND.DB.isValidPlatform (candidate)
check if canidate Object is a valid platform

Parameters:

  • candidate DCS Object (Unit or Static Object)

Returns:

    bool True if object is valid platform
HOUND.DB.getPlatformData (DcsObject)
Get Platform data

Parameters:

  • DcsObject platform unit

Returns:

    platform data
HOUND.DB.getDefraction (wavelength, antenna_size)
Get defraction for band and effective antenna size return angular resolution

Parameters:

  • wavelength Radar transmission band (A-L) as defined in HOUND.DB
  • antenna_size Effective antenna size for platform as defined in HOUND.DB

Returns:

    angular resolution in Radians for wavelength and Antenna combo
HOUND.DB.getApertureSize (DcsObject)
get Effective Aperture size for platform

Parameters:

  • DcsObject Unit requested (used as platform)

Returns:

    Effective aperture size in meters
HOUND.DB.getEmitterBand (DcsUnit)
Get emitter Band

Parameters:

  • DcsUnit Radar unit

Returns:

    Char radar band
HOUND.DB.getEmitterFrequencies (bands, factor)
Generate uniqe radar frequencies for contact

Parameters:

  • bands tab
  • factor optional number between 0 and 1 where between high and low freqs (for testing)

Returns:

    table containig wavelengths in meters for the radar
HOUND.DB.getSensorPrecision (platform, emitterFreq)
Elint Function - Get sensor precision

Parameters:

  • platform Instance of DCS Unit which is the detecting platform
  • emitterFreq Radar wavelength (frequency) of radar (in meters) or DCS Unit

Returns:

    angular resolution in Radians of platform against specific Radar frequency
HOUND.DB.updateHumanDb (coalitionId)
populate the HOUND.DB.HumanUnits db

Parameters:

  • coalitionId optional number if provided, DB will be updated to specificd coalition only
HOUND.DB.cleanHumanDb (coalitionId)
cleanup the HOUND.DB.HumanUnits db from disconnected units.

Parameters:

  • coalitionId optional number if provided, DB will be updated to specificd coalition only
HOUND.DB.generateMistDbEntry (DcsUnit)
create a partial "humanByName" mist record from unit use subset of mist format https://github.com/mrSkortch/MissionScriptingTools/blob/master/Example%20DBs/mist_DBs_humansByName.lua

Parameters:

  • DcsUnit

Returns:

    table
generated by LDoc 1.5.0 Last updated 2025-03-30 22:58:36