Changeset 594:6e7e3e49f5dc
- Timestamp:
- 12/23/14 10:17:55 (10 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
locale/en/mlx.po
r592 r594 869 869 msgid "cruise_help" 870 870 msgstr "" 871 "If your cruise altitude changes, you can enter the new value below.\n" 872 "To actually log the value, press the <b>Update</b> button,\n" 873 "when you reach the specified level." 871 "If your cruise altitude changes, enter the new value below,\n" 872 "and then press the <b>Update</b> button." 874 873 875 874 msgid "cruise_route_level_tooltip" -
locale/hu/mlx.po
r593 r594 870 870 msgid "cruise_help" 871 871 msgstr "" 872 "Ha az utazószint változik, az új értéket itt írhatod be.\n" 873 "Az érték tényleges naplózásához nyomd meg a <b>Frissít</b> gombot,\n" 874 "amikor eléred a megadott szintet." 872 "Ha az utazószint változik, írd be az új értéket, majd\n" 873 "nyomd meg a <b>Frissít</b> gombot." 875 874 876 875 msgid "cruise_route_level_tooltip" -
src/mlx/checks.py
r562 r594 76 76 aircraft.setStage(state, const.STAGE_LANDING) 77 77 elif stage==const.STAGE_CRUISE: 78 if (state.altitude+2000) < flight.cruiseAltitude :78 if (state.altitude+2000) < flight.cruiseAltitudeForDescent: 79 79 aircraft.setStage(state, const.STAGE_DESCENT) 80 80 elif stage==const.STAGE_DESCENT or stage==const.STAGE_GOAROUND: -
src/mlx/flight.py
r564 r594 111 111 self._checklistScheduler = ChecklistScheduler(self) 112 112 113 self._maxAltitude = 0 114 113 115 @property 114 116 def config(self): … … 180 182 """Get the cruise altitude of the flight.""" 181 183 return self._gui.cruiseAltitude 184 185 @property 186 def maxAltitude(self): 187 """Get the maximal altitude ever reached during the flight.""" 188 return self._maxAltitude 189 190 @property 191 def cruiseAltitudeForDescent(self): 192 """Get the cruise altitude to check for descending. 193 194 This is the minimum of current maximal altitude and the cruise 195 altitude.""" 196 return min(self._maxAltitude, self.cruiseAltitude) 182 197 183 198 @property … … 353 368 self._pilotHotkeyPressed) 354 369 self._pilotHotkeyPressed = False 370 371 self._maxAltitude = max(currentState.altitude, self._maxAltitude) 355 372 356 373 if self._checklistHotkeyPressed:
Note:
See TracChangeset
for help on using the changeset viewer.