Changeset 84:40b2d74e74f4 for src/mlx/flight.py
- Timestamp:
- 04/15/12 11:03:59 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/flight.py
r71 r84 31 31 gui.resetFlightStatus() 32 32 33 self.cruiseAltitude = None34 33 self.flareTimeFromFS = False 35 34 self.entranceExam = False 36 self.zfw = None37 35 38 36 self.options = Options() … … 44 42 self._endCondition = threading.Condition() 45 43 46 self.v1 = None47 self.vr = None48 self.v2 = None49 50 44 self._flareStart = None 51 45 self._flareStartFS = None … … 56 50 return self._stage 57 51 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 58 77 def setStage(self, timestamp, stage): 59 78 """Set the flight stage. … … 62 81 if stage!=self._stage: 63 82 self._stage = stage 83 self._gui.setStage(stage) 64 84 self.logger.stage(timestamp, stage) 65 self._gui.setStage(stage)66 85 if stage==const.STAGE_END: 67 86 with self._endCondition:
Note:
See TracChangeset
for help on using the changeset viewer.