mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
Fixed the impossible bearing calculation problem
* Bearing is only known of a SET_UNIT, if all units of the set are heading +/- 5 degrees in the same direction.
This commit is contained in:
@@ -488,9 +488,9 @@ do -- COORDINATE
|
||||
function COORDINATE:GetHeadingText( Settings )
|
||||
local Heading = self:GetHeading()
|
||||
if Heading then
|
||||
return string.format( " heading %3.2f °", Heading )
|
||||
return string.format( " bearing %3d°", Heading )
|
||||
else
|
||||
return " heading cannot be determined"
|
||||
return " bearing unknown"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user