Added atmospheric force.
Added atmospheric force.

--- a/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
+++ b/KerbalEngineer/Flight/Readouts/ReadoutLibrary.cs
@@ -93,6 +93,8 @@
             this.readoutModules.Add(new GeeForce());

             this.readoutModules.Add(new TerminalVelocity());

             this.readoutModules.Add(new AtmosphericEfficiency());

+            this.readoutModules.Add(new AtmosphericDeceleration());

+            this.readoutModules.Add(new AtmosphericForce());

             this.readoutModules.Add(new Biome());

             this.readoutModules.Add(new Slope());

             this.readoutModules.Add(new ImpactTime());


--- /dev/null
+++ b/KerbalEngineer/Flight/Readouts/Surface/AtmosphericForce.cs
@@ -1,1 +1,60 @@
-
+// 

+//     Kerbal Engineer Redux

+// 

+//     Copyright (C) 2014 CYBUTEK

+// 

+//     This program is free software: you can redistribute it and/or modify

+//     it under the terms of the GNU General Public License as published by

+//     the Free Software Foundation, either version 3 of the License, or

+//     (at your option) any later version.

+// 

+//     This program is distributed in the hope that it will be useful,

+//     but WITHOUT ANY WARRANTY; without even the implied warranty of

+//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the

+//     GNU General Public License for more details.

+// 

+//     You should have received a copy of the GNU General Public License

+//     along with this program.  If not, see <http://www.gnu.org/licenses/>.

+// 

+

+using KerbalEngineer.Extensions;

+

+namespace KerbalEngineer.Flight.Readouts.Surface

+{

+    public class AtmosphericForce : ReadoutModule

+    {

+        private bool showing;

+

+        public AtmosphericForce()

+        {

+            this.Name = "Atmos. Force";

+            this.Category = ReadoutCategory.Surface;

+            this.HelpString = "Shows the force caused by the vessel's drag.";

+            this.IsDefault = true;

+        }

+

+        public override void Update()

+        {

+            AtmosphericProcessor.RequestUpdate();

+        }

+

+        public override void Draw()

+        {

+            if (AtmosphericProcessor.ShowDetails)

+            {

+                this.showing = true;

+                this.DrawLine(AtmosphericProcessor.Force.ToForce());

+            }

+            else if (this.showing)

+            {

+                this.showing = false;

+                this.ResizeRequested = true;

+            }

+        }

+

+        public override void Reset()

+        {

+            FlightEngineerCore.Instance.AddUpdatable(AtmosphericProcessor.Instance);

+        }

+    }

+}

--- a/KerbalEngineer/Flight/Readouts/Surface/AtmosphericProcessor.cs
+++ b/KerbalEngineer/Flight/Readouts/Surface/AtmosphericProcessor.cs
@@ -61,6 +61,16 @@
         /// </summary>

         public static double Efficiency { get; private set; }

 

+        /// <summary>

+        ///     Gets the deceleration caused by drag.

+        /// </summary>

+        public static double Deceleration { get; private set; }

+

+        /// <summary>

+        ///     Gets the force caused by drag.

+        /// </summary>

+        public static double Force { get; private set; }

+

         #endregion

 

         #region IUpdatable Members

@@ -86,6 +96,7 @@
 

             TerminalVelocity = Math.Sqrt((2 * mass * grav) / (atmo * drag * coef));

             Efficiency = FlightGlobals.ship_srfSpeed / TerminalVelocity;

+            Force = atmo * coef * drag * Math.Pow(FlightGlobals.ActiveVessel.srfSpeed, 2) / 2;

         }

 

         #endregion


--- a/KerbalEngineer/KerbalEngineer.csproj
+++ b/KerbalEngineer/KerbalEngineer.csproj
@@ -63,6 +63,7 @@
     <Compile Include="Flight\FlightEngineerPartless.cs" />

     <Compile Include="Flight\Readouts\Misc\Separator.cs" />

     <Compile Include="Flight\Readouts\Misc\GuiSizeAdjustor.cs" />

+    <Compile Include="Flight\Readouts\Surface\AtmosphericForce.cs" />

     <Compile Include="Flight\Readouts\Surface\ImpactBiome.cs" />

     <Compile Include="Flight\Readouts\Surface\Slope.cs" />

     <Compile Include="Flight\Readouts\Surface\Biome.cs" />


 Binary files a/Output/KerbalEngineer/KerbalEngineer.dll and b/Output/KerbalEngineer/KerbalEngineer.dll differ