From 671f4a131e4bea522d734a68ca03adae6e43b702 Mon Sep 17 00:00:00 2001 From: Thomas <72444570+Applevangelist@users.noreply.github.com> Date: Mon, 2 Jan 2023 13:32:51 +0100 Subject: [PATCH] Update FlightGroup.lua Output 3775 AddWaypoint Controls --- Moose Development/Moose/Ops/FlightGroup.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Moose Development/Moose/Ops/FlightGroup.lua b/Moose Development/Moose/Ops/FlightGroup.lua index c390ce0a7..3ac45171f 100644 --- a/Moose Development/Moose/Ops/FlightGroup.lua +++ b/Moose Development/Moose/Ops/FlightGroup.lua @@ -3772,19 +3772,19 @@ end -- @return Ops.OpsGroup#OPSGROUP.Waypoint Waypoint table. function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitude, Updateroute) + self:I(self.lid..string.format("AddWaypoint | Speed = %f | After Wpt = %d | Alt = %d | Updateroute = %s",Speed or -1,AfterWaypointWithID or -1 ,Altitude or -1,tostring(Updateroute)) + -- Create coordinate. local coordinate=self:_CoordinateFromObject(Coordinate) -- 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 + -- Debug info. + self:T3(self.lid..string.format("Waypoint Speed=%.1f knots", Speed)) -- Alt type default is barometric (ASL). For helos we use radar (AGL). local alttype=COORDINATE.WaypointAltType.BARO