string PreflightInfo(Vessel vessel) { string info = ""; info += string.Format("Surface TWR:\t{0:0.00}\n", TWRWeightedAverage(2 * vessel.mainBody.GeeASL * DestinationHeight, vessel)); info += string.Format("Mass:\t\t{0:0.00} t\n", vesselState.mass); info += string.Format("Height:\t\t{0:0.0} m\n", vesselState.vesselHeight); info += "\n"; info += string.Format("Drag area:\t\t{0:0.00}\n", vesselState.areaDrag); info += string.Format("Drag coefficient:\t{0:0.00}\n", vesselState.dragCoef); info += string.Format("Drag coefficient fwd:\t{0:0.00}\n", vessel.DragCubeCoefForward()); DragRatio.value = vesselState.areaDrag / vesselState.mass; info += string.Format("area/mass:\t{0:0.00}\n", DragRatio.value); return(info); }
string PreflightInfo(Vessel vessel) { string info; info = string.Format("Drag area {0:0.00}", vesselState.areaDrag); info += string.Format("\nDrag coefficient {0:0.00}", vesselState.dragCoef); info += string.Format("\nDrag coefficient fwd {0:0.00}", vessel.DragCubeCoefForward()); info += string.Format("\nMass {0:0.00}", vesselState.mass); DragRatio.value = vesselState.areaDrag/vesselState.mass; info += string.Format("\narea/mass {0:0.00}", DragRatio.value); info += string.Format("\nGuess TWR {0:0.00}", TWRWeightedAverage(2 * vessel.mainBody.GeeASL * DestinationHeight,vessel)); info += string.Format("\nPitch {0:0.00}", vessel.Pitch()); info += string.Format("\nTimeToDesiredAP {0:0.00}", Calculations.TimeToReachAP(vesselState, vesselState.speedVertical, HoldAPTime)); return info; }