Ignore:
Timestamp:
04/03/22 14:32:40 (2 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Unreadable N1 values are handled better (re #359)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r919 r1043  
    516516        This default implementation checks the N1 values, but for
    517517        piston-powered aircraft you need to check the RPMs."""
    518         for n1 in aircraftState.n1:
    519             if n1>=0.5: return False
     518        if aircraftState.n1 is not None:
     519            for n1 in aircraftState.n1:
     520                if n1 is not None and n1>=0.5: return False
    520521        return True
    521522
Note: See TracChangeset for help on using the changeset viewer.