mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-24 12:05:27 +00:00
AUFTRAG CAP
- Fixed mission speed (unit conversion)
This commit is contained in:
@@ -1310,7 +1310,7 @@ function AUFTRAG:NewCAP(ZoneCAP, Altitude, Speed, Coordinate, Heading, Leg, Targ
|
|||||||
mission.missionTask=ENUMS.MissionTask.CAP
|
mission.missionTask=ENUMS.MissionTask.CAP
|
||||||
mission.optionROE=ENUMS.ROE.OpenFire
|
mission.optionROE=ENUMS.ROE.OpenFire
|
||||||
mission.optionROT=ENUMS.ROT.EvadeFire
|
mission.optionROT=ENUMS.ROT.EvadeFire
|
||||||
mission.missionSpeed = UTILS.KnotsToAltKIAS(Speed or 350,Altitude)
|
mission.missionSpeed = UTILS.KnotsToKmph(UTILS.KnotsToAltKIAS(Speed or 350, Altitude))
|
||||||
|
|
||||||
mission.categories={AUFTRAG.Category.AIRCRAFT}
|
mission.categories={AUFTRAG.Category.AIRCRAFT}
|
||||||
|
|
||||||
|
|||||||
@@ -3777,10 +3777,13 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
|
|||||||
|
|
||||||
-- Set waypoint index.
|
-- Set waypoint index.
|
||||||
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
||||||
|
|
||||||
-- Speed in knots.
|
-- Speed in knots.
|
||||||
Speed=Speed or self:GetSpeedCruise()
|
Speed=Speed or self:GetSpeedCruise()
|
||||||
|
|
||||||
|
-- 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).
|
-- 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
|
||||||
|
|||||||
Reference in New Issue
Block a user