Beispiel #1
0
 private void initialize()
 {
     if (cCOMM == null)
     {
         cCOMM = new COMM();
         cCOMM.iStation_ID_Characters    = new int[4];
         cCOMM.iStation_ID_Characters[0] = 23; // X
         cCOMM.iStation_ID_Characters[1] = 10; // K
         cCOMM.iStation_ID_Characters[2] = 18; // S
         cCOMM.iStation_ID_Characters[3] = 15; // P
         cCOMM.buildStationID();
         sStation_ID = cCOMM.sStation_ID;
         dFrequency  = cCOMM.getFrequency();
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
     if (cADM == null)
     {
         cADM = new AirDataModule();
     }
     ProcessorPowerRequired = 50.0 * W_Per_Charge;
     BroadcastPowerRequired = 10.0 * W_Per_Charge;
     cADM.initialize();
     iLastMetarUpdateTime = -1;
     dTime = 0.0;
 }
Beispiel #2
0
 private void initialize()
 {
     if (cRecv == null)
     {
         cRecv = new COMMreceiver();
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
 }
Beispiel #3
0
 private void initialize()
 {
     if (cVOR == null)
     {
         cVOR = new VOR();
         cVOR.iStation_ID_Characters    = new int[3];
         cVOR.iStation_ID_Characters[0] = 10; // K
         cVOR.iStation_ID_Characters[1] = 18; // S
         cVOR.iStation_ID_Characters[2] = 15; // P
         cVOR.buildStationID();
         sStation_ID = cVOR.sStation_ID;
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
 }
Beispiel #4
0
 private void initialize()
 {
     if (cDME == null)
     {
         cDME = new DME();
         cDME.iStation_ID_Characters    = new int[3];
         cDME.iStation_ID_Characters[0] = 10; // K
         cDME.iStation_ID_Characters[1] = 18; // S
         cDME.iStation_ID_Characters[2] = 15; // P
         cDME.buildStationID();
         sStation_ID = cDME.sStation_ID;
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
 }
Beispiel #5
0
 private void initialize()
 {
     if (cLOC == null)
     {
         cLOC = new LOC();
         cLOC.iStation_ID_Characters    = new int[3];
         cLOC.iStation_ID_Characters[0] = 10; // K
         cLOC.iStation_ID_Characters[1] = 18; // S
         cLOC.iStation_ID_Characters[2] = 15; // P
         cLOC.buildStationID();
         sStation_ID = cLOC.sStation_ID;
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
 }
Beispiel #6
0
 private void initialize()
 {
     if (cGLS == null)
     {
         cGLS = new GLS();
         cGLS.iStation_ID_Characters    = new int[3];
         cGLS.iStation_ID_Characters[0] = 10; // K
         cGLS.iStation_ID_Characters[1] = 18; // S
         cGLS.iStation_ID_Characters[2] = 15; // P
         cGLS.buildStationID();
         sStation_ID = cGLS.sStation_ID;
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
 }
Beispiel #7
0
 private void initialize()
 {
     if (cRecv == null)
     {
         cRecv = new VHFreceiver();
     }
     if (cNav_Master == null)
     {
         cNav_Master = new NAVmaster();
     }
     if (iNav_ID == -1)
     {
         int iOtherCount = -1;
         foreach (Part p in vessel.Parts)
         {
             foreach (PartModule m in p.Modules)
             {
                 VHF_NAV_Receiver cOtherRcvr = m as VHF_NAV_Receiver;
                 if (cOtherRcvr != null)
                 {
                     if (cOtherRcvr.iNav_ID > iOtherCount)
                     {
                         iOtherCount = cOtherRcvr.iNav_ID;
                     }
                 }
             }
         }
         if (iOtherCount == -1)
         {
             iNav_ID = 1;
         }
         else
         {
             iNav_ID = iOtherCount + 1;
         }
     }
 }