mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
AUFTRAG CAP
- Fixed mission speed (unit conversion)
This commit is contained in:
parent
8f185d1291
commit
bdd283956c
@ -1310,7 +1310,7 @@ function AUFTRAG:NewCAP(ZoneCAP, Altitude, Speed, Coordinate, Heading, Leg, Targ
|
||||
mission.missionTask=ENUMS.MissionTask.CAP
|
||||
mission.optionROE=ENUMS.ROE.OpenFire
|
||||
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}
|
||||
|
||||
|
||||
@ -3777,10 +3777,13 @@ function FLIGHTGROUP:AddWaypoint(Coordinate, Speed, AfterWaypointWithID, Altitud
|
||||
|
||||
-- Set waypoint index.
|
||||
local wpnumber=self:GetWaypointIndexAfterID(AfterWaypointWithID)
|
||||
|
||||
|
||||
-- Speed in knots.
|
||||
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).
|
||||
local alttype=COORDINATE.WaypointAltType.BARO
|
||||
if self.isHelo then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user