mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
PseudoATC and RANGE
Range: corrected heading PseudoATC: lots of changes
This commit is contained in:
@@ -1594,6 +1594,13 @@ function RANGE:_DisplayStrafePits(_unitname)
|
||||
-- Pit parameters.
|
||||
local coord=_strafepit.coordinate --Core.Point#COORDINATE
|
||||
local heading=_strafepit.heading
|
||||
|
||||
-- Turn heading around ==> approach heading.
|
||||
if heading>180 then
|
||||
heading=heading-180
|
||||
else
|
||||
heading=heading+180
|
||||
end
|
||||
|
||||
local mycoord=coord:ToStringA2G(_unit, _settings)
|
||||
_text=_text..string.format("\n- %s: %s - heading %03d",_strafepit.name, mycoord, heading)
|
||||
|
||||
Reference in New Issue
Block a user