Changeset 525:02437e74e7ca
- Timestamp:
- 06/29/13 11:30:39 (11 years ago)
- Branch:
- default
- Phase:
- public
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/checks.py
r521 r525 663 663 speed = logState.groundSpeed if logState.groundSpeed<80.0 \ 664 664 else logState.ias 665 return"Flaps %.0f - %.0f %s" % \665 message = "Flaps %.0f - %.0f %s" % \ 666 666 (logState.flapsSet, flight.speedFromKnots(speed), 667 667 flight.getEnglishSpeedUnit()) 668 669 if flight.stage in [const.STAGE_DESCENT, const.STAGE_LANDING]: 670 message += ", %.0f ft AGL" % (logState.radioAltitude,) 671 672 return message 668 673 669 674 #--------------------------------------------------------------------------------------- … … 678 683 def _getMessage(self, flight, state, forced): 679 684 """Get the message to log on a change.""" 680 return "Gears SET to %s at %.0f %s, %.0f f eet" % \685 return "Gears SET to %s at %.0f %s, %.0f ft, %.0f ft AGL" % \ 681 686 ("DOWN" if state.gearControlDown else "UP", 682 687 flight.speedFromKnots(state.ias), 683 flight.getEnglishSpeedUnit(), state.altitude) 688 flight.getEnglishSpeedUnit(), 689 state.altitude, state.radioAltitude) 684 690 685 691 #--------------------------------------------------------------------------------------- -
test/test1.txt
r519 r525 8 8 set lights=1 9 9 set noseGear=100 10 set gearControl=100 10 11 set flapsControl=0 11 12 set zfw=46741 hour=7 min=50 … … 43 44 set altitude=600 44 45 46 set gearControl=0 45 47 set noseGear=0 46 48 set altitude=2000 … … 69 71 set radioAltitude=3200 70 72 set radioAltitude=1100 73 set gearControl=100 71 74 set noseGear=100 72 75 set radioAltitude=50
Note:
See TracChangeset
for help on using the changeset viewer.