private void Calculate() { var fx = runwayTemperatureSeries.Interpolate(_runwayTemp, _pressureAlt); if (_antiIceOn) { _takeoffFactor = maxThrustAI.Interpolate(fx); } else { _takeoffFactor = maxThrust.Interpolate(fx); } }
private void Calculate() { var interimCG = outboardSeries.Interpolate(_outboardStoresWeight); var interimWeight = _outboardStoresWeight; interimCG = inboardSeries.Interpolate(_inboardStoresWeight, interimWeight); interimWeight = interimWeight + _inboardStoresWeight; interimCG = centerSeries.Interpolate(_centerStoresWeight, interimWeight); interimWeight = interimWeight + _centerStoresWeight; if (_hasMissiles) { interimCG = interimCG + missileSeries.Interpolate(interimWeight); interimWeight = interimWeight + F5MissionPlanner.DefaultMissileWeight; } interimCG = interimCG + ammoSeries.Interpolate(_ammo, interimWeight); interimWeight = interimWeight + _ammo; _cg = interimCG; _grossWeight = F5MissionPlanner.DefaultEmptyWeight + interimWeight; }