This commit is contained in:
Frank
2020-01-06 21:09:21 +01:00
parent fcfcfeae00
commit 4661f6981e
6 changed files with 85 additions and 51 deletions

View File

@@ -1060,3 +1060,23 @@ function UTILS.GetCoalitionName(Coalition)
end
--- Get the modulation name from its numerical value.
-- @param #number Modulation The modulation enumerator number. Can be either 0 or 1.
-- @return #string The modulation name, i.e. "AM"=0 or "FM"=1. Anything else will return "Unknown".
function UTILS.GetModulationName(Modulation)
if Modulation then
if Modulation==0 then
return "AM"
elseif Modulation==1 then
return "FM"
else
return "Unknown"
end
else
return "Unknown"
end
end