Changeset 360:b83988619f8b
- Timestamp:
- 12/13/12 16:34:33 (12 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r359 r360 73 73 74 74 self.humanWeight = 82.0 75 76 self.reverseMinSpeed = 60 75 77 76 78 self._checkers = [] … … 675 677 25 : 220, 676 678 42 : 180 } 679 self.reverseMinSpeed = 50 677 680 678 681 #--------------------------------------------------------------------------------------- … … 727 730 20 : 400, 728 731 30 : 300 } 732 self.reverseMinSpeed = 50 729 733 730 734 @property … … 769 773 28 : 194, 770 774 45 : 162 } 775 self.reverseMinSpeed = 50 771 776 772 777 @property -
src/mlx/checks.py
r359 r360 1250 1250 1251 1251 class ReverserChecker(SimpleFaultChecker): 1252 """Check if the reverser is not used below 60 knots.""" 1252 """Check if the reverser is not used below the speed prescribed for the 1253 aircraft.""" 1253 1254 def isCondition(self, flight, aircraft, oldState, state): 1254 1255 """Check if the fault condition holds.""" 1255 1256 return flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING, 1256 1257 const.STAGE_TAXIAFTERLAND] and \ 1257 state.groundSpeed< 60and max(state.reverser)1258 state.groundSpeed<aircraft.reverseMinSpeed and max(state.reverser) 1258 1259 1259 1260 def logFault(self, flight, aircraft, logger, oldState, state): -
test/test1.txt
r356 r360 1 set n1_1=0 2 set n1_2=0 1 3 set onTheGround=yes 2 4 set gs=0 … … 12 14 set parking=no 13 15 set gs=10 ias=10 16 set n1_1=25 17 set n1_2=25 14 18 set flapsControl=37.5 15 19 set nav2=112.3 … … 19 23 set lights=21 20 24 set gs=80 ias=80 25 set n1_1=70 26 set n1_2=70 21 27 set gs=90 ias=90 28 set n1_1=90 29 set n1_2=90 22 30 set gs=100 ias=100 23 31 set gs=120 ias=120 … … 47 55 set latitude=47.49 longitude=21.62 48 56 set onTheGround=yes 57 set n1_1=-10 58 set n1_2=-10 59 set n1_1=0 60 set n1_2=0 49 61 set ias=45 gs=45 50 62 set ias=35 gs=35
Note:
See TracChangeset
for help on using the changeset viewer.