Changeset 354:4efeae885059


Ignore:
Timestamp:
12/12/12 16:36:23 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Some further smaller refinements of the strobeless takeoff detection (#143)

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r351 r354  
    13001300        """Check if the fault condition holds."""
    13011301        return flight.stage in [const.STAGE_PUSHANDTAXI,
     1302                                const.STAGE_RTO,
    13021303                                const.STAGE_TAXIAFTERLAND] and \
    13031304            state.groundSpeed>50
     
    13311332    def check(self, flight, aircraft, logger, oldState, state):
    13321333        """Check the state as described above."""
    1333         if flight.stage==const.STAGE_PUSHANDTAXI:
     1334        if flight.stage==const.STAGE_PUSHANDTAXI or \
     1335           flight.stage==const.STAGE_RTO:
    13341336            self._checkPushAndTaxi(flight, aircraft, state)
    13351337        elif flight.stage==const.STAGE_TAXIAFTERLAND:
  • src/mlx/flight.py

    r349 r354  
    325325                                       (self._rtoState.groundSpeed,))
    326326                self._gui.setRating(self.logger.getRating())
     327                if self._stage == const.STAGE_PUSHANDTAXI:
     328                    self.setStage(self.aircraft.state.timestamp,
     329                                  const.STAGE_RTO)
    327330            else:
    328331                SpeedChecker.logSpeedFault(self, self._rtoState,
    329332                                           stage = const.STAGE_PUSHANDTAXI,
    330333                                           updateID = self._rtoLogEntryID)
     334                if self._stage == const.STAGE_RTO:
     335                    self.setStage(self.aircraft.state.timestamp,
     336                                  const.STAGE_PUSHANDTAXI)
    331337
    332338    def flareStarted(self, flareStart, flareStartFS):
Note: See TracChangeset for help on using the changeset viewer.