mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
FG Mission Speed Fix
This commit is contained in:
parent
6fa3f0a11c
commit
d36ceb861a
@ -3781,6 +3781,11 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
|
|||||||
-- Speed in knots.
|
-- Speed in knots.
|
||||||
Speed=Speed or self:GetSpeedCruise()
|
Speed=Speed or self:GetSpeedCruise()
|
||||||
|
|
||||||
|
local mission = self:GetMissionCurrent()
|
||||||
|
if mission and not self.isHelo then
|
||||||
|
Speed = mission.missionSpeed and mission.missionSpeed or self:GetSpeedCruise()
|
||||||
|
end
|
||||||
|
|
||||||
-- 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
|
||||||
if self.isHelo then
|
if self.isHelo then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user