mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
AWACS -correct error in SetAwacsDetails (#1873)
Corrected setting of Angels
This commit is contained in:
parent
09e9377e54
commit
4773a83a24
@ -1840,10 +1840,10 @@ function AWACS:SetAwacsDetails(CallSign,CallSignNo,Angels,Speed,Heading,Leg)
|
|||||||
self:T(self.lid.."SetAwacsDetails")
|
self:T(self.lid.."SetAwacsDetails")
|
||||||
self.CallSign = CallSign or CALLSIGN.AWACS.Magic
|
self.CallSign = CallSign or CALLSIGN.AWACS.Magic
|
||||||
self.CallSignNo = CallSignNo or 1
|
self.CallSignNo = CallSignNo or 1
|
||||||
self.Angels = Angels or 25
|
self.AwacsAngels = Angels or 25
|
||||||
local speed = Speed or 250
|
local speed = Speed or 250
|
||||||
self.SpeedBase = speed
|
self.SpeedBase = speed
|
||||||
self.Speed = UTILS.KnotsToAltKIAS(speed,self.Angels*1000)
|
self.Speed = UTILS.KnotsToAltKIAS(speed,self.AwacsAngels*1000)
|
||||||
self.Heading = Heading or 0
|
self.Heading = Heading or 0
|
||||||
self.Leg = Leg or 25
|
self.Leg = Leg or 25
|
||||||
return self
|
return self
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user