src/AircraftTrajectories/Models/Optimisation/FlightSimulator.cs
/// <summary>
/// Switch to the next segment if needed
/// </summary>
Switch to the next segment if needed
Switch to the next segment if needed
protected void updateHorizontalState()
        {
                if (_segmentStartPoint == null) {
                    _segmentStartPoint = new Point3D(_x, _y, 0, CoordinateUnit.metric);
                }
                switch (_horizontal_state)
                {
                    case HORIZONTAL_STATE.STRAIGHT:
                        CheckStraightEnd();
                        break;
                    case HORIZONTAL_STATE.TURN:
                        CheckEndOfTurn();
                        break;
                }
        }
protected void updateHorizontalState ( ) { if ( _segmentStartPoint == null ) { _segmentStartPoint = new Point3D ( _x , _y , 0 , CoordinateUnit . metric ) ; } switch ( _horizontal_state ) { case HORIZONTAL_STATE . STRAIGHT : CheckStraightEnd ( ) ; break ; case HORIZONTAL_STATE . TURN : CheckEndOfTurn ( ) ; break ; } }
Switch to the next segment if needed
Switch to the next segment if needed
//if (_vertical_state == VERTICAL_STATE.FREECLIMB) { //}