Ignore:
Timestamp:
12/23/14 10:17:55 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Made the checking of the Descent stage a bit more clever (re #233)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r562 r594  
    7676                aircraft.setStage(state, const.STAGE_LANDING)
    7777        elif stage==const.STAGE_CRUISE:
    78             if (state.altitude+2000) < flight.cruiseAltitude:
     78            if (state.altitude+2000) < flight.cruiseAltitudeForDescent:
    7979                aircraft.setStage(state, const.STAGE_DESCENT)
    8080        elif stage==const.STAGE_DESCENT or stage==const.STAGE_GOAROUND:
Note: See TracChangeset for help on using the changeset viewer.