src/AircraftTrajectories/Models/Optimisation/FlightSimulator.cs
/// <summary>
/// Calculate the current thrust of the aircraft based on the thrust setting for the current segment
/// </summary>
/// <returns></returns>
Calculate the current thrust of the aircraft based on the thrust setting for the current segment
Calculate the current thrust of the aircraft based on the thrust setting for the current segment
public double CurrentThrust()
        {
            switch (_vertical_state)
            {
                case VERTICAL_STATE.TAKEOFF:
                    return _aircraft.TakeOffThrust(_speed, _height);
                case VERTICAL_STATE.CLIMB:
                    return _aircraft.ClimbThrust(_speed, _height);
                default:
                    double maxThrust = _aircraft.ClimbThrust(_speed, _height);
                    return Interpolate(_aircraft.Drag(_speed, _height), maxThrust, Setting(1));
            }
        }
public double CurrentThrust ( ) { switch ( _vertical_state ) { case VERTICAL_STATE . TAKEOFF : return _aircraft . TakeOffThrust ( _speed , _height ) ; case VERTICAL_STATE . CLIMB : return _aircraft . ClimbThrust ( _speed , _height ) ; default : double maxThrust = _aircraft . ClimbThrust ( _speed , _height ) ; return Interpolate ( _aircraft . Drag ( _speed , _height ) , maxThrust , Setting ( 1 ) ) ; } }
Calculate the current thrust of the aircraft based on the thrust setting for the current segment
Calculate the current thrust of the aircraft based on the thrust setting for the current segment
None