src/AircraftTrajectories/Models/Optimisation/FlightSimulator.cs
/// <summary>
/// Update the flight path angle of the aircraft
/// </summary>
/// <param name="thrust">the current thrust for all engines combined</param>
/// <param name="drag">the current drag</param>
Update the flight path angle of the aircraft
Update the flight path angle of the aircraft
protected void updateAngle(double thrust, double drag)
        {
            double maxAngle = MaxAngle(thrust, drag);
            if (_vertical_state == VERTICAL_STATE.FREECLIMB)
            {
                _angle = Interpolate(0, maxAngle, Setting(0));
            } else {
                _angle = maxAngle;
            }
        }
protected void updateAngle ( double thrust , double drag ) { double maxAngle = MaxAngle ( thrust , drag ) ; if ( _vertical_state == VERTICAL_STATE . FREECLIMB ) { _angle = Interpolate ( 0 , maxAngle , Setting ( 0 ) ) ; } else { _angle = maxAngle ; } }
Update the flight path angle of the aircraft
Update the flight path angle of the aircraft
thrust
double
the current thrust for all engines combined
the current thrust for all engines combined
drag
double
the current drag
the current drag