Changeset 11:433f7e61f9f3 for src/acft.py
- Timestamp:
- 02/08/12 16:28:21 (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/acft.py
r10 r11 27 27 self._checkers = [] 28 28 29 # Loggers 30 29 31 self._checkers.append(checks.StageChecker()) 30 32 self._checkers.append(checks.TakeOffLogger()) … … 47 49 self._checkers.append(checks.SpoilerLogger()) 48 50 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 49 83 @property 50 84 def type(self): … … 61 95 """Get the logger to use for the aircraft.""" 62 96 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 63 102 64 103 def modelChanged(self, timestamp, aircraftName, modelName):
Note:
See TracChangeset
for help on using the changeset viewer.