Changeset 1165:3f5bc889907b


Ignore:
Timestamp:
06/15/24 15:08:15 (10 days ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

The altitude above which the speed is reported in Mach can be specified for each aircraft type (re #389).

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r1154 r1165  
    289289        This default implementation returns DERATE_NONE."""
    290290        return DERATE_NONE
     291
     292    @property
     293    def machSpeedAbove(self):
     294        """Get the altitude above which the cruise speed should be reported
     295        in Machs."""
     296        return 24500
    291297
    292298    def setBookedFlight(self, bookedFlight):
  • src/mlx/checks.py

    r1150 r1165  
    206206           (self._lastTime is None or \
    207207            (self._lastTime+800)<=state.timestamp):
    208                 if state.altitude>24500.0:
     208                if state.altitude>aircraft.machSpeedAbove:
    209209                    logger.message(state.timestamp,
    210210                                   "Cruise speed: %.3f mach" % (state.mach,))
Note: See TracChangeset for help on using the changeset viewer.