Changeset 631:5801fb8d2d03 for src/mlx
- Timestamp:
- 04/16/15 15:40:15 (10 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r624 r631 993 993 """Append the checkers needed for the lights.""" 994 994 self._checkers.append(checks.TupolevAntiCollisionLightsChecker()) 995 self._checkers.append(checks.TupolevLandingLightsChecker()) 995 996 self._checkers.append(checks.LandingLightsChecker()) 996 997 self._checkers.append(checks.NavLightsChecker()) … … 1040 1041 """Append the checkers needed for the lights.""" 1041 1042 self._checkers.append(checks.AntiCollisionLightsChecker()) 1043 self._checkers.append(checks.TupolevLandingLightsChecker()) 1042 1044 self._checkers.append(checks.LandingLightsChecker()) 1043 1045 self._checkers.append(checks.NavLightsChecker()) -
src/mlx/checks.py
r623 r631 998 998 #--------------------------------------------------------------------------------------- 999 999 1000 class TupolevLandingLightsChecker(PatientFaultChecker): 1001 """Check if the landing light is not switched on above an IAS of 340 km/h.""" 1002 def isCondition(self, flight, aircraft, oldState, state): 1003 """Check if the fault condition holds.""" 1004 return state.landingLightsOn and state.ias>(340.0*const.KMPHTOKNOTS) 1005 1006 def logFault(self, flight, aircraft, logger, oldState, state): 1007 """Log the fault.""" 1008 flight.handleFault(TupolevLandingLightsChecker, state.timestamp, 1009 "The landing lights were on above an IAS of 340 km/h", 1010 1) 1011 1012 #--------------------------------------------------------------------------------------- 1013 1000 1014 class BankChecker(SimpleFaultChecker): 1001 1015 """Check for the bank is within limits."""
Note:
See TracChangeset
for help on using the changeset viewer.