Ignore:
Timestamp:
04/15/12 11:03:59 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Created an integer entry widget and made use of it for entering the cargo weight and the takeoff speeds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/flight.py

    r71 r84  
    3131        gui.resetFlightStatus()
    3232
    33         self.cruiseAltitude = None
    3433        self.flareTimeFromFS = False
    3534        self.entranceExam = False
    36         self.zfw = None
    3735
    3836        self.options = Options()
     
    4442        self._endCondition = threading.Condition()
    4543
    46         self.v1 = None
    47         self.vr = None
    48         self.v2 = None
    49 
    5044        self._flareStart = None
    5145        self._flareStartFS = None
     
    5650        return self._stage
    5751
     52    @property
     53    def zfw(self):
     54        """Get the Zero-Fuel Weight of the flight."""
     55        return self._gui.zfw
     56
     57    @property
     58    def cruiseAltitude(self):
     59        """Get the cruise altitude of the flight."""
     60        return self._gui.cruiseAltitude
     61
     62    @property
     63    def v1(self):
     64        """Get the V1 speed of the flight."""
     65        return self._gui.v1
     66
     67    @property
     68    def vr(self):
     69        """Get the Vr speed of the flight."""
     70        return self._gui.vr
     71
     72    @property
     73    def v2(self):
     74        """Get the V2 speed of the flight."""
     75        return self._gui.v2
     76
    5877    def setStage(self, timestamp, stage):
    5978        """Set the flight stage.
     
    6281        if stage!=self._stage:
    6382            self._stage = stage
     83            self._gui.setStage(stage)
    6484            self.logger.stage(timestamp, stage)
    65             self._gui.setStage(stage)
    6685            if stage==const.STAGE_END:
    6786                with self._endCondition:
Note: See TracChangeset for help on using the changeset viewer.