Changeset 360:b83988619f8b


Ignore:
Timestamp:
12/13/12 16:34:33 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Added aircraft-specific minimal speed for the reversers (#152)

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r359 r360  
    7373
    7474        self.humanWeight = 82.0
     75
     76        self.reverseMinSpeed = 60
    7577
    7678        self._checkers = []
     
    675677                                 25 : 220,
    676678                                 42 : 180 }
     679        self.reverseMinSpeed = 50
    677680
    678681#---------------------------------------------------------------------------------------
     
    727730                                 20 : 400,
    728731                                 30 : 300 }
     732        self.reverseMinSpeed = 50
    729733
    730734    @property
     
    769773                                 28 : 194,
    770774                                 45 : 162 }
     775        self.reverseMinSpeed = 50
    771776
    772777    @property
  • src/mlx/checks.py

    r359 r360  
    12501250
    12511251class ReverserChecker(SimpleFaultChecker):
    1252     """Check if the reverser is not used below 60 knots."""
     1252    """Check if the reverser is not used below the speed prescribed for the
     1253    aircraft."""
    12531254    def isCondition(self, flight, aircraft, oldState, state):
    12541255        """Check if the fault condition holds."""
    12551256        return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING,
    12561257                                const.STAGE_TAXIAFTERLAND] and \
    1257             state.groundSpeed<60 and max(state.reverser)
     1258            state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser)
    12581259
    12591260    def logFault(self, flight, aircraft, logger, oldState, state):
  • test/test1.txt

    r356 r360  
     1set n1_1=0
     2set n1_2=0
    13set onTheGround=yes
    24set gs=0
     
    1214set parking=no
    1315set gs=10 ias=10
     16set n1_1=25
     17set n1_2=25
    1418set flapsControl=37.5
    1519set nav2=112.3
     
    1923set lights=21
    2024set gs=80 ias=80
     25set n1_1=70
     26set n1_2=70
    2127set gs=90 ias=90
     28set n1_1=90
     29set n1_2=90
    2230set gs=100 ias=100
    2331set gs=120 ias=120
     
    4755set latitude=47.49 longitude=21.62
    4856set onTheGround=yes
     57set n1_1=-10
     58set n1_2=-10
     59set n1_1=0
     60set n1_2=0
    4961set ias=45 gs=45
    5062set ias=35 gs=35
Note: See TracChangeset for help on using the changeset viewer.