give hornets correct coords format

This commit is contained in:
LazyBoot 2019-09-07 20:15:02 +02:00
parent fa21d3caf0
commit 6007696f81
No known key found for this signature in database
GPG Key ID: 0BD81D01FA2A433F

View File

@ -44,19 +44,19 @@ HOGGIT.CoordForPlaneType = function(planeType, pos)
local ddm = function()
return mist.tostringLL(lat, long, 3)
end
local ddm2 = function()
return mist.tostringLL(lat, long, 2)
end
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,
["AJS37"] = endms6,
["F-14B"] = ddm
["F-14B"] = ddm,
["FA-18C_hornet"] = ddm2
-- Everything else will default to dms. Add things here if we need exclusions.
}
local f = unitCoordTypeTable[planeType]