Changeset 414:f8c5a66db45a for src/mlx


Ignore:
Timestamp:
01/21/13 18:18:27 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Increased the timeout for strobeless takeoff to 30 seconds and changed the order of the conditions so that if the plane eventually lifts off, it is detected as takeoff anyway (re #171)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/checks.py

    r409 r414  
    13781378                    self._highestSpeedState = state
    13791379
    1380                 if state.timestamp > (self._takeoffState.timestamp + 20):
    1381                     flight.setRTOState(self._highestSpeedState)
    1382                 elif not state.onTheGround:
     1380                if not state.onTheGround:
    13831381                    aircraft.setStage(self._takeoffState, const.STAGE_TAKEOFF)
    13841382                    self._takeoffState = None
     1383                elif state.timestamp > (self._takeoffState.timestamp + 30):
     1384                    flight.setRTOState(self._highestSpeedState)
    13851385        elif self._takeoffState is not None:
    13861386            flight.setRTOState(self._highestSpeedState)
Note: See TracChangeset for help on using the changeset viewer.