Changeset 525:02437e74e7ca for src
- Timestamp:
- 06/29/13 11:30:39 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 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 #---------------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.