Changeset 598:85f4667214b4
- Timestamp:
- 02/22/15 09:33:51 (10 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r597 r598 114 114 self.humanWeight = 82.0 115 115 116 self.reverseMinSpeed = 60 116 self.initialClimbSpeedAltitude = 1500 117 self.reverseMinSpeed = 50 117 118 118 119 self.needNoStrobeSpeedCheck = False … … 194 195 self._checkers.append(checks.PitotChecker()) 195 196 197 self._checkers.append(checks.ReverserLogger()) 196 198 self._checkers.append(checks.ReverserChecker()) 197 199 -
src/mlx/checks.py
r594 r598 1324 1324 #--------------------------------------------------------------------------------------- 1325 1325 1326 class ReverserLogger(StateChecker): 1327 """Logger for the reverser.""" 1328 def check(self, flight, aircraft, logger, oldState, state): 1329 """Log the cruise speed if necessary.""" 1330 if oldState is not None and state.reverser != oldState.reverser: 1331 reverser = max(state.reverser) 1332 logger.message(state.timestamp, 1333 "Reverser " + ("unlocked" if reverser else "closed") + 1334 (" - %.0f %s" % (flight.speedFromKnots(state.ias), 1335 flight.getEnglishSpeedUnit()))) 1336 1337 #--------------------------------------------------------------------------------------- 1338 1326 1339 class ReverserChecker(SimpleFaultChecker): 1327 1340 """Check if the reverser is not used below the speed prescribed for the … … 1332 1345 const.STAGE_TAXIAFTERLAND] and \ 1333 1346 state.reverser and \ 1334 state. groundSpeed<aircraft.reverseMinSpeed and max(state.reverser)1347 state.ias<aircraft.reverseMinSpeed and max(state.reverser) 1335 1348 1336 1349 def logFault(self, flight, aircraft, logger, oldState, state): 1337 1350 """Log the fault.""" 1338 1351 message = "Reverser used below %.0f %s" % \ 1339 (flight.speedFromKnots( 60), flight.getEnglishSpeedUnit())1352 (flight.speedFromKnots(aircraft.reverseMinSpeed), flight.getEnglishSpeedUnit()) 1340 1353 flight.handleFault(ReverserChecker, state.timestamp, 1341 1354 FaultChecker._appendDuring(flight, message),
Note:
See TracChangeset
for help on using the changeset viewer.