src/AircraftTrajectories/Models/Optimisation/FlightSimulator.cs
/// <summary>
/// Update the bank angle of the aircraft
/// </summary>
Update the bank angle of the aircraft
Update the bank angle of the aircraft
public void UpdateBankAngle()
        {
            _bankAngle = 0;
            if (_horizontal_state == HORIZONTAL_STATE.TURN)
            {
                var radius = Interpolate(_aircraft.MinimumTurnRadius(_speed), MAX_TURN_RADIUS, Setting(2));
                var speedMs = _speed * 0.514444444;
                _bankAngle = Math.Atan(_speed * _speed / radius / 9.81);
                _bankAngle = (Setting(3) > 0.5) ? _bankAngle : -_bankAngle;
            }
        }
public void UpdateBankAngle ( ) { _bankAngle = 0 ; if ( _horizontal_state == HORIZONTAL_STATE . TURN ) { var radius = Interpolate ( _aircraft . MinimumTurnRadius ( _speed ) , MAX_TURN_RADIUS , Setting ( 2 ) ) ; var speedMs = _speed * 0.514444444 ; _bankAngle = Math . Atan ( _speed * _speed / radius / 9.81 ) ; _bankAngle = ( Setting ( 3 ) > 0.5 ) ? _bankAngle : - _bankAngle ; } }
Update the bank angle of the aircraft
Update the bank angle of the aircraft