Changeset 519:4d047bb841c3 for src/mlx


Ignore:
Timestamp:
06/05/13 15:33:32 (11 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The anti-collision lights can be turned off when the parking brake is set, but the engines are still running if FS2Crew is being used (re #203)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r518 r519  
    910910    def isCondition(self, flight, aircraft, oldState, state):
    911911        """Check if the fault condition holds."""
    912         return (flight.stage!=const.STAGE_PARKING or \
    913                 not flight.config.usingFS2Crew) and \
     912        return (not flight.config.usingFS2Crew or not state.parking or
     913                flight.stage!=const.STAGE_TAXIAFTERLAND) and \
    914914                not state.antiCollisionLightsOn and \
    915915                self.isEngineCondition(state)
Note: See TracChangeset for help on using the changeset viewer.