Changeset 350:c014a60676dc for src/mlx


Ignore:
Timestamp:
12/11/12 18:22:14 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The speed checkers are determined in a type-specific manner (#143)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r349 r350  
    137137        self._checkers.append(checks.PayloadChecker())
    138138
    139         #self._checkers.append(checks.SpeedChecker())
    140         self._checkers.append(checks.NoStrobeSpeedChecker())
     139        self._appendSpeedChecker()
    141140        self._checkers.append(checks.VSChecker())
    142141
     
    388387        self._checkers.append(checks.StrobeLightsChecker())
    389388
     389    def _appendSpeedChecker(self):
     390        """Append the speed checker.
     391
     392        This default implementation used the SpeedChecker."""
     393        self._checkers.append(checks.SpeedChecker())
     394
    390395    def _speedToLog(self, speed):
    391396        """Convert the given speed (being either None or expressed in the
     
    475480                                 30 : 175,
    476481                                 40 : 162 }
     482
     483    # def _appendSpeedChecker(self):
     484    #     """Append the NoStrobeSpeedChecker to the checkers.
     485
     486    #     FOR TESTING ONLY, THIS FUNCTION SHOULD NORMALLY BE COMMENTED OUT!!!"""
     487    #     self._checkers.append(checks.NoStrobeSpeedChecker())
    477488
    478489#---------------------------------------------------------------------------------------
     
    732743        self._checkers.append(checks.LandingLightsChecker())
    733744        self._checkers.append(checks.NavLightsChecker())
     745
     746    def _appendSpeedChecker(self):
     747        """Append the NoStrobeSpeedChecker to the checkers."""
     748        self._checkers.append(checks.NoStrobeSpeedChecker())
    734749
    735750#---------------------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.