- New idea: Range.
- Add 'RadioManager.lua' for future radio management. - Fix some bug of BAirboss.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -255,6 +255,25 @@ do
|
|||||||
return self
|
return self
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function BAirboss:setATCChannel(frequency,modulation,power)
|
||||||
|
local SetFrequency = {
|
||||||
|
id = 'SetFrequencyForUnit',
|
||||||
|
params = {
|
||||||
|
frequency = frequency,
|
||||||
|
modulation = radio.modulation,
|
||||||
|
power = number,
|
||||||
|
unitId = self.carrierUnit:getID(),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
local Controller = self.carrierUnit:getController()
|
||||||
|
if not Controller then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
|
Controller:setCommand(ActivateBeacon)
|
||||||
|
end
|
||||||
|
|
||||||
function BAirboss:setTACAN(Channel,Mode,MorseCode)
|
function BAirboss:setTACAN(Channel,Mode,MorseCode)
|
||||||
self.TACAN = Channel or BAirboss.DefaultSettings[self.carrierUnit:getTypeName()].TACAN
|
self.TACAN = Channel or BAirboss.DefaultSettings[self.carrierUnit:getTypeName()].TACAN
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
RadioManager = {}
|
||||||
|
|
||||||
|
do
|
||||||
|
RadioManager.RadioList = {}
|
||||||
|
|
||||||
|
RadioManager.UHF = {
|
||||||
|
min = 200000000,
|
||||||
|
max = 399975000,
|
||||||
|
}
|
||||||
|
|
||||||
|
RadioManager.VHF = {
|
||||||
|
min = 30000000,
|
||||||
|
max = 159975000,
|
||||||
|
}
|
||||||
|
|
||||||
|
function RadioManager:New()
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user