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

Added the checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/acft.py

    r10 r11  
    2727        self._checkers = []
    2828
     29        # Loggers
     30
    2931        self._checkers.append(checks.StageChecker())
    3032        self._checkers.append(checks.TakeOffLogger())
     
    4749        self._checkers.append(checks.SpoilerLogger())
    4850
     51        # Fault checkers
     52       
     53        self._checkers.append(checks.AntiCollisionLightsChecker())
     54        self._checkers.append(checks.LandingLightsChecker())
     55        self._checkers.append(checks.NavLightsChecker())
     56        self._checkers.append(checks.StrobeLightsChecker())
     57
     58        self._checkers.append(checks.BankChecker())
     59
     60        self._checkers.append(checks.FlapsRetractChecker())
     61        self._checkers.append(checks.FlapsSpeedLimitChecker())
     62
     63        self._checkers.append(checks.GearsDownChecker())
     64        self._checkers.append(checks.GearSpeedLimitChecker())
     65
     66        self._checkers.append(checks.GLoadChecker())
     67
     68        self._checkers.append(checks.MLWChecker())
     69        self._checkers.append(checks.MTOWChecker())
     70        self._checkers.append(checks.MZFWChecker())
     71        self._checkers.append(checks.PayloadChecker())
     72
     73        self._checkers.append(checks.SpeedChecker())
     74        self._checkers.append(checks.VSChecker())
     75        self._checkers.append(checks.OverspeedChecker())
     76        self._checkers.append(checks.StallChecker())
     77
     78        self._checkers.append(checks.PitotChecker())
     79       
     80        self._checkers.append(checks.ThrustChecker())
     81        self._checkers.append(checks.ReverserChecker())
     82
    4983    @property
    5084    def type(self):
     
    6195        """Get the logger to use for the aircraft."""
    6296        return self._flight.logger
     97
     98    def getFlapsSpeedLimit(self, flaps):
     99        """Get the speed limit for the given flaps setting."""
     100        return self.flapSpeedLimits[flaps] if flaps in self.flapSpeedLimits \
     101               else None
    63102
    64103    def modelChanged(self, timestamp, aircraftName, modelName):
Note: See TracChangeset for help on using the changeset viewer.