mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
COORDINATE - added bogey option to COORDINATE:ToStringBRAANATO(FromCoordinate,Bogey,Spades)
This commit is contained in:
parent
37206bcc83
commit
1aaa51c4be
@ -2768,9 +2768,10 @@ do -- COORDINATE
|
|||||||
--- Create a BRAA NATO call string to this COORDINATE from the FromCOORDINATE. Note - BRA delivered if no aspect can be obtained and "Merged" if range < 3nm
|
--- Create a BRAA NATO call string to this COORDINATE from the FromCOORDINATE. Note - BRA delivered if no aspect can be obtained and "Merged" if range < 3nm
|
||||||
-- @param #COORDINATE self
|
-- @param #COORDINATE self
|
||||||
-- @param #COORDINATE FromCoordinate The coordinate to measure the distance and the bearing from.
|
-- @param #COORDINATE FromCoordinate The coordinate to measure the distance and the bearing from.
|
||||||
|
-- @param #boolean Bogey Add "Bogey" at the end if true (not yet declared hostile or friendly)
|
||||||
-- @param #boolean Spades Add "Spades" at the end if true (no IFF/VID ID yet known)
|
-- @param #boolean Spades Add "Spades" at the end if true (no IFF/VID ID yet known)
|
||||||
-- @return #string The BRAA text.
|
-- @return #string The BRAA text.
|
||||||
function COORDINATE:ToStringBRAANATO(FromCoordinate,Spades)
|
function COORDINATE:ToStringBRAANATO(FromCoordinate,Bogey,Spades)
|
||||||
|
|
||||||
-- Thanks to @Pikey
|
-- Thanks to @Pikey
|
||||||
local BRAANATO = "Merged."
|
local BRAANATO = "Merged."
|
||||||
@ -2796,8 +2797,12 @@ do -- COORDINATE
|
|||||||
else
|
else
|
||||||
BRAANATO = string.format("BRAA, %03d, %d miles, Angels %d, %s, Track %s",bearing, rangeNM, alt, aspect, track)
|
BRAANATO = string.format("BRAA, %03d, %d miles, Angels %d, %s, Track %s",bearing, rangeNM, alt, aspect, track)
|
||||||
end
|
end
|
||||||
if Spades then
|
if Bogey and Spades then
|
||||||
BRAANATO = BRAANATO..", Spades."
|
BRAANATO = BRAANATO..", Bogey, Spades."
|
||||||
|
elseif Bogey and (not Spades) then
|
||||||
|
BRAANATO = BRAANATO..", Bogey."
|
||||||
|
elseif (not Bogey) and Spades then
|
||||||
|
BRAANATO = BRAANATO..", Spades."
|
||||||
else
|
else
|
||||||
BRAANATO = BRAANATO.."."
|
BRAANATO = BRAANATO.."."
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user