src/AircraftTrajectories/Models/Optimisation/FlightSimulator.cs
/// <summary>
/// Update the speed of the aircraft
/// </summary>
/// <param name="thrust">the current thrust for all engines combined</param>
/// <param name="drag">the current drag</param>
Update the speed of the aircraft
Update the speed of the aircraft
protected void updateSpeed(double thrust, double drag)
        {
            if (_vertical_state == VERTICAL_STATE.FREECLIMB) {
                _speed += (1/_aircraft.Mass) * (thrust - drag - ((_aircraft.Mass * 9.81) * Math.Sin(_angle)));
            }
        }
protected void updateSpeed ( double thrust , double drag ) { if ( _vertical_state == VERTICAL_STATE . FREECLIMB ) { _speed += ( 1 / _aircraft . Mass ) * ( thrust - drag - ( ( _aircraft . Mass * 9.81 ) * Math . Sin ( _angle ) ) ) ; } }
Update the speed of the aircraft
Update the speed of the aircraft
//Console.WriteLine("T:" + thrust + " D:" + drag + " A:"+_angle);
thrust
double
the current thrust for all engines combined
the current thrust for all engines combined
drag
double
the current drag
the current drag