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; }
private void initializeVariables() { if (cADM == null) { cADM = new AirDataModule(); } cADM.initialize(); cADM.setSeaLevelPressure(dStatic_Press_Sea_Level); ElectricPowerRequired = 25.0 * dW_to_EC; }