mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2026-08-17 20:56:08 +00:00
Update FlightGroup.lua
This commit is contained in:
@@ -382,6 +382,12 @@ FLIGHTGROUP.MissionStatus={
|
|||||||
-- @field #number altitude Altitude in meters.
|
-- @field #number altitude Altitude in meters.
|
||||||
-- @extends #FLIGHTGROUP.Mission
|
-- @extends #FLIGHTGROUP.Mission
|
||||||
|
|
||||||
|
--- STRIKE mission.
|
||||||
|
-- @type FLIGHTGROUP.MissionSTRIKE
|
||||||
|
-- @field Core.Point#COORDINATE Coordinate.
|
||||||
|
-- @field #number altitude Altitude.
|
||||||
|
-- @extends #FLIGHTGROUP.Mission
|
||||||
|
|
||||||
--- FLIGHTGROUP class version.
|
--- FLIGHTGROUP class version.
|
||||||
-- @field #string version
|
-- @field #string version
|
||||||
FLIGHTGROUP.version="0.3.0"
|
FLIGHTGROUP.version="0.3.0"
|
||||||
@@ -1157,6 +1163,23 @@ function FLIGHTGROUP:CreateMissionCAP(Altitude, SpeedOrbit, Heading, Leg)
|
|||||||
return mission
|
return mission
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--- Create a STRIKE mission.
|
||||||
|
-- @param #FLIGHTGROUP self
|
||||||
|
-- @param #Core.Point#COORDINATE Coordinate Target Coordinate.
|
||||||
|
-- @param #number Altitude Altitude
|
||||||
|
-- @return #FLIGHTGROUP.MissionSTRIKE The STRIKE mission table.
|
||||||
|
function FLIGHTGROUP:CreateMissionSTRIKE(TargetCoordinate, IngressCoordinate, Altitude)
|
||||||
|
|
||||||
|
local mission={} --#FLIGHTGROUP.MissionSTIKE
|
||||||
|
|
||||||
|
mission.type=FLIGHTGROUP.MissionType.STIKE
|
||||||
|
mission.coordingress=IngressCoordinate
|
||||||
|
mission.coordtarget=TargetCoordinate
|
||||||
|
mission.altitude=UTILS.FeetToMeters(Altitude or 5000)
|
||||||
|
|
||||||
|
return mission
|
||||||
|
end
|
||||||
|
|
||||||
--- Create an INTERCEPT mission.
|
--- Create an INTERCEPT mission.
|
||||||
-- @param #FLIGHTGROUP self
|
-- @param #FLIGHTGROUP self
|
||||||
-- @param Core.Set#SET_GROUP TargetGroupSet The set of target groups to intercept.
|
-- @param Core.Set#SET_GROUP TargetGroupSet The set of target groups to intercept.
|
||||||
|
|||||||
Reference in New Issue
Block a user