Ejemplo n.º 1
0
 public void UpdateHeatshieldValues()
 {
     ROLLog.debug("UpdateHeatshieldValues()");
     ROLLog.debug($"HeatShieldAblator: {HeatShieldAblator}");
     ROLLog.debug($"heatShieldDensity: {heatShieldDensity}");
     ROLLog.debug($"HeatShieldMass: {HeatShieldMass}");
     part.Resources["Ablator"].maxAmount        = part.Resources["Ablator"].amount = HeatShieldAblator;
     part.Resources["CharredAblator"].maxAmount = HeatShieldAblator;
     part.Resources["CharredAblator"].amount    = 0;
     hsMass = HeatShieldMass;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Updates all dimensions for the PAW and tooling.
        /// </summary>
        private void updateDimensions()
        {
            float noseMaxDiam, mountMaxDiam = 0.0f;

            noseMaxDiam = Math.Max(noseModule.moduleLowerDiameter, noseModule.moduleUpperDiameter);
            ROLLog.debug("currentMount: " + currentMount);
            if (currentMount.Contains("Mount"))
            {
                ROLLog.debug("currentMount: " + currentMount);
                mountMaxDiam = mountModule.moduleUpperDiameter;
            }
            else
            {
                mountMaxDiam = Math.Max(mountModule.moduleLowerDiameter, mountModule.moduleUpperDiameter);
            }

            totalTankLength = getTotalHeight();
            ROLLog.debug("The Total Tank Length is: " + totalTankLength);
            largestDiameter = Math.Max(currentDiameter, Math.Max(noseMaxDiam, mountMaxDiam));
        }