Changeset 354:4efeae885059 for src
- Timestamp:
- 12/12/12 16:36:23 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r351 r354 1300 1300 """Check if the fault condition holds.""" 1301 1301 return flight.stage in [const.STAGE_PUSHANDTAXI, 1302 const.STAGE_RTO, 1302 1303 const.STAGE_TAXIAFTERLAND] and \ 1303 1304 state.groundSpeed>50 … … 1331 1332 def check(self, flight, aircraft, logger, oldState, state): 1332 1333 """Check the state as described above.""" 1333 if flight.stage==const.STAGE_PUSHANDTAXI: 1334 if flight.stage==const.STAGE_PUSHANDTAXI or \ 1335 flight.stage==const.STAGE_RTO: 1334 1336 self._checkPushAndTaxi(flight, aircraft, state) 1335 1337 elif flight.stage==const.STAGE_TAXIAFTERLAND: -
src/mlx/flight.py
r349 r354 325 325 (self._rtoState.groundSpeed,)) 326 326 self._gui.setRating(self.logger.getRating()) 327 if self._stage == const.STAGE_PUSHANDTAXI: 328 self.setStage(self.aircraft.state.timestamp, 329 const.STAGE_RTO) 327 330 else: 328 331 SpeedChecker.logSpeedFault(self, self._rtoState, 329 332 stage = const.STAGE_PUSHANDTAXI, 330 333 updateID = self._rtoLogEntryID) 334 if self._stage == const.STAGE_RTO: 335 self.setStage(self.aircraft.state.timestamp, 336 const.STAGE_PUSHANDTAXI) 331 337 332 338 def flareStarted(self, flareStart, flareStartFS):
Note:
See TracChangeset
for help on using the changeset viewer.