private LandingOutput Adjust(LandingOutput CurrOutput) { LandingOutput NewOutput = CurrOutput; if (Values.OAT < 0) { NewOutput.VAPP += 20; NewOutput.VREF += 20; NewOutput.VGA += 20; } return(NewOutput); }
private LandingOutput Compute() { LandingOutput Output = new LandingOutput(); Tuple <int, int, int> VSpeeds = LandingSettings.VSPEED_LOOKUP(Values.Flaps, Values.Weight); int Vapp = VSpeeds.Item1; int Vref = VSpeeds.Item2; int Vga = VSpeeds.Item3; Output.VAPP = Vapp; Output.VREF = Vref; Output.VGA = Vga; return(Output); }
internal LandingComputation(LandingSpeedValues Values) { this.Values = Values; this.Output = Adjust(Compute()); }