mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-10-29 16:58:06 +00:00
OPSGROUP
- Added EPLRS option - EPLRS is on if group has datalink capability
This commit is contained in:
@@ -131,6 +131,7 @@
|
||||
-- @field #number optionROT ROT.
|
||||
-- @field #number optionAlarm Alarm state.
|
||||
-- @field #number optionFormation Formation.
|
||||
-- @field #boolean optionEPLRS EPLRS datalink.
|
||||
-- @field #number optionCM Counter measures.
|
||||
-- @field #number optionRTBammo RTB on out-of-ammo.
|
||||
-- @field #number optionRTBfuel RTB on out-of-fuel.
|
||||
@@ -1805,6 +1806,21 @@ function AUFTRAG:SetAlarmstate(Alarmstate)
|
||||
return self
|
||||
end
|
||||
|
||||
--- Set EPLRS datalink setting for this mission.
|
||||
-- @param #AUFTRAG self
|
||||
-- @param #boolean OnOffSwitch If `true` or `nil`, EPLRS is on. If `false`, EPLRS is off.
|
||||
-- @return #AUFTRAG self
|
||||
function AUFTRAG:SetEPLRS(OnOffSwitch)
|
||||
|
||||
if OnOffSwitch==nil then
|
||||
self.optionEPLRS=true
|
||||
else
|
||||
self.optionEPLRS=OnOffSwitch
|
||||
end
|
||||
|
||||
return self
|
||||
end
|
||||
|
||||
--- Set formation for this mission.
|
||||
-- @param #AUFTRAG self
|
||||
-- @param #number Formation Formation.
|
||||
|
||||
Reference in New Issue
Block a user