Changeset 597:79a1c9f14bc5 for src/mlx


Ignore:
Timestamp:
02/22/15 09:29:41 (10 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

It is no longer a NOGO if the amount of landing fuel is too low (re #239)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r592 r597  
    374374                if self._minLandingFuel is not None and \
    375375                   aircraftState.totalFuel<self._minLandingFuel:
    376                     self._flight.handleNoGo(self.__class__,
    377                                             aircraftState.timestamp,
    378                                             "The amount of the landing fuel is less than the minimum for this type: %ukgs" %
    379                                             (self._minLandingFuel,),
    380                                             "LANDING FUEL NO GO")
     376                    self._flight.handleFault(self.__class__,
     377                                             aircraftState.timestamp,
     378                                             "The amount of the landing fuel is less than the minimum for this type: %ukgs (possible NO GO!)" %
     379                                             (self._minLandingFuel,), 0)
    381380                self.logger.message(aircraftState.timestamp,
    382381                                    "Landing weight: %.0f kg, MLW: %.0f" % \
Note: See TracChangeset for help on using the changeset viewer.