Changeset 448:89c9d5d516eb for src


Ignore:
Timestamp:
03/02/13 09:23:21 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Tags:
version_0.16
Message:

G-load is checked only when not on the ground (re #185)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r447 r448  
    10501050    def isCondition(self, flight, aircraft, oldState, state):
    10511051        """Check if the fault condition holds."""
    1052         return state.gLoad>2.0 and (flight.stage!=const.STAGE_LANDING or \
    1053                                     state.radioAltitude>=50)
     1052        return state.gLoad>2.0 and not state.onTheGround and \
     1053          (flight.stage!=const.STAGE_LANDING or state.radioAltitude>=50)
    10541054
    10551055    def logFault(self, flight, aircraft, logger, oldState, state):
Note: See TracChangeset for help on using the changeset viewer.