Changeset 624:e501c5d66286


Ignore:
Timestamp:
04/04/15 10:45:00 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

It is a fault if less than 10 minutes pass between an RTO and the next takeoff attempt (re #261)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r623 r624  
    120120        self.maxTakeOffPitch = 15.0
    121121        self.maxTouchDownPitch = 15.0
     122        self.brakeCoolTime = 10.0
    122123
    123124        self._checkers = []
     
    333334            self._logNameAndModel(aircraftState.timestamp)
    334335
     336        oldStage = self._flight.stage
     337
    335338        if self._flight.setStage(aircraftState.timestamp, newStage):
    336339            if newStage==const.STAGE_PUSHANDTAXI:
     
    345348                                   5)
    346349            elif newStage==const.STAGE_TAKEOFF:
     350                if oldStage == const.STAGE_RTO and self._flight.hasRTO:
     351                    rtoState = self._flight.rtoState
     352                    if (aircraftState.timestamp - rtoState.timestamp) < \
     353                       (self.brakeCoolTime * 60.0):
     354                        self.logger.fault("brakeCoolTime",
     355                                          aircraftState.timestamp,
     356                                          "Did not cool the brakes for at least %.f minutes after the RTO" % (self.brakeCoolTime,),
     357                                          15.0)
    347358                self.logger.message(aircraftState.timestamp,
    348359                                    "Flight time start")
Note: See TracChangeset for help on using the changeset viewer.