2013-04-03 12:47:24 +02:00
|
|
|
|
using ChanSort.Api;
|
|
|
|
|
|
|
2021-01-23 14:22:18 +01:00
|
|
|
|
namespace ChanSort.Loader.LG.Binary
|
2013-04-03 12:47:24 +02:00
|
|
|
|
{
|
|
|
|
|
|
class SatChannel : TllChannelBase
|
|
|
|
|
|
{
|
|
|
|
|
|
private const string _SatConfigIndex = "offSatelliteNr";
|
|
|
|
|
|
private const string _TransponderIndex = "offTransponderIndex";
|
|
|
|
|
|
|
2019-11-08 02:31:44 +01:00
|
|
|
|
public bool InUse { get; }
|
2013-04-03 12:47:24 +02:00
|
|
|
|
|
|
|
|
|
|
public SatChannel(int order, int slot, DataMapping data, DataRoot dataRoot) : base(data)
|
|
|
|
|
|
{
|
|
|
|
|
|
this.InUse = data.GetWord(_SatConfigIndex) != 0xFFFF;
|
|
|
|
|
|
if (!InUse)
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
this.InitCommonData(slot, SignalSource.DvbS, data);
|
|
|
|
|
|
this.InitDvbData(data);
|
|
|
|
|
|
|
|
|
|
|
|
int transponderIndex = data.GetWord(_TransponderIndex);
|
2019-11-08 02:31:44 +01:00
|
|
|
|
var transponder = dataRoot.Transponder.TryGet(transponderIndex);
|
|
|
|
|
|
var sat = transponder.Satellite;
|
2013-04-03 12:47:24 +02:00
|
|
|
|
|
2013-04-29 00:35:40 +02:00
|
|
|
|
this.Transponder = transponder;
|
2013-04-03 12:47:24 +02:00
|
|
|
|
this.Satellite = sat.Name;
|
|
|
|
|
|
this.SatPosition = sat.OrbitalPosition;
|
|
|
|
|
|
this.RecordOrder = order;
|
|
|
|
|
|
this.TransportStreamId = transponder.TransportStreamId;
|
|
|
|
|
|
this.OriginalNetworkId = transponder.OriginalNetworkId;
|
|
|
|
|
|
this.SymbolRate = transponder.SymbolRate;
|
|
|
|
|
|
this.Polarity = transponder.Polarity;
|
|
|
|
|
|
this.FreqInMhz = transponder.FrequencyInMhz;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|