From 4148c404c1bf67a6f9c97fa32adb8a7cacc3e997 Mon Sep 17 00:00:00 2001 From: primarchstrelok <44879122+primarchstrelok@users.noreply.github.com> Date: Wed, 13 Mar 2019 14:44:03 +1300 Subject: [PATCH] Added East West 6 digit coords for the Viggen (#8) * Added East West 6 digit coords for the Viggen --- hoggit/group.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hoggit/group.lua b/hoggit/group.lua index 49c9731..ed2bc99 100644 --- a/hoggit/group.lua +++ b/hoggit/group.lua @@ -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]