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
@ -3777,10 +3777,15 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
|
||||
|
||||
-- Set waypoint index.
|
||||
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
||||
|
||||
|
||||
-- Speed in knots.
|
||||
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).
|
||||
local alttype=COORDINATE.WaypointAltType.BARO
|
||||
if self.isHelo then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user