Changeset 271:fa4c688d0fb4 for src/mlx


Ignore:
Timestamp:
07/02/12 17:23:04 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

The centre of gravity is logged in percent

Location:
src/mlx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/acft.py

    r263 r271  
    301301                            "Touchdown heading: %03.0f degrees" % (heading,))
    302302        self.logger.message(self._aircraftState.timestamp,
    303                            "Centre of gravity:  %.03f" % \
    304                             (self._aircraftState.cog,))
     303                           "Centre of gravity:  %.1f%%" % \
     304                            (self._aircraftState.cog*100.0,))
    305305
    306306    def cancelFlare(self):
  • src/mlx/checks.py

    r263 r271  
    143143                           "Takeoff pitch: %.1f degrees" % (state.pitch,))
    144144            logger.message(state.timestamp,
    145                            "Centre of gravity:  %.03f" % (state.cog,))
     145                           "Centre of gravity:  %.1f%%" % (state.cog*100.0,))
    146146            self._onTheGround = False
    147147
Note: See TracChangeset for help on using the changeset viewer.