mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
#FG - let planes not limp around
This commit is contained in:
parent
0340d17ab8
commit
b769568df1
@ -943,7 +943,7 @@ function FLIGHTGROUP:Status()
|
|||||||
local DCSTask=mission:GetDCSMissionTask() --DCS#Task
|
local DCSTask=mission:GetDCSMissionTask() --DCS#Task
|
||||||
|
|
||||||
-- Get task.
|
-- Get task.
|
||||||
local Task=mission:GetGroupWaypointTask(self)
|
local Task=self:GetTaskByID(mission.auftragsnummer)
|
||||||
|
|
||||||
-- Reset current orbit task.
|
-- Reset current orbit task.
|
||||||
self.controller:resetTask()
|
self.controller:resetTask()
|
||||||
@ -3775,7 +3775,14 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
|
|||||||
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
||||||
|
|
||||||
-- Speed in knots.
|
-- Speed in knots.
|
||||||
Speed=Speed or self:GetSpeedCruise()
|
if not Speed or Speed < 10 then
|
||||||
|
|
||||||
|
local mission = self:GetMissionCurrent() -- Ops.Auftrag#AUFTRAG
|
||||||
|
local speed = mission.missionSpeed
|
||||||
|
Speed = speed or self:GetSpeedCruise()
|
||||||
|
|
||||||
|
end
|
||||||
|
--Speed=Speed or self:GetSpeedCruise()
|
||||||
|
|
||||||
-- Alt type default is barometric (ASL). For helos we use radar (AGL).
|
-- Alt type default is barometric (ASL). For helos we use radar (AGL).
|
||||||
local alttype=COORDINATE.WaypointAltType.BARO
|
local alttype=COORDINATE.WaypointAltType.BARO
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user