mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Update FlightGroup.lua
- fixed bug that mission does not exist
This commit is contained in:
parent
c8d9377dbb
commit
fe01c6196e
@ -3779,14 +3779,7 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
|
|||||||
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
||||||
|
|
||||||
-- Speed in knots.
|
-- Speed in knots.
|
||||||
if not Speed or Speed < 10 then
|
Speed=Speed or self:GetSpeedCruise()
|
||||||
|
|
||||||
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