mirror of
https://gitlab.com/hoggit/developers/hoggit.git
synced 2025-11-10 15:43:28 +00:00
Added East West 6 digit coords for the Viggen (#8)
* Added East West 6 digit coords for the Viggen
This commit is contained in:
parent
b9a1d725b1
commit
4148c404c1
@ -47,11 +47,15 @@ HOGGIT.CoordForPlaneType = function(planeType, pos)
|
||||
local mgrs = function()
|
||||
return mist.tostringMGRS(coord.LLtoMGRS(lat,long),4)
|
||||
end
|
||||
local endms6 = function()
|
||||
return mist.tostringLL(long, lat, 2, "")
|
||||
end
|
||||
--If it's not defined here we'll use dms.
|
||||
local unitCoordTypeTable = {
|
||||
["Ka-50"] = ddm,
|
||||
["M-2000C"] = ddm,
|
||||
["A-10C"] = mgrs
|
||||
["A-10C"] = mgrs,
|
||||
["AJS37"] = endms6
|
||||
-- Everything else will default to dms. Add things here if we need exclusions.
|
||||
}
|
||||
local f = unitCoordTypeTable[planeType]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user