- Added EPLRS option
- EPLRS is on if group has datalink capability
This commit is contained in:
Frank
2021-09-07 11:17:20 +02:00
parent bdf13f29f7
commit aecb92ccd3
6 changed files with 128 additions and 16 deletions

View File

@@ -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.