Changeset 1137:87a29e5e4b2d for src
- Timestamp:
- 03/20/24 19:21:59 (9 months ago)
- Branch:
- python3
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r1116 r1137 480 480 481 481 def flareFinished(self, flareEnd, flareEndFS, tdRate, tdRateCalculatedByFS, 482 ias, pitch, bank, heading ):482 ias, pitch, bank, heading, gLoad): 483 483 """Called when the flare has finished.""" 484 484 (flareTimeFromFS, flareTime) = self.flight.flareFinished(flareEnd, … … 494 494 "Touchdown rate was calculated by the %s" % \ 495 495 ("simulator" if tdRateCalculatedByFS else "logger",)) 496 self.logger.message(self._aircraftState.timestamp, 497 "Touchdown G-load: %.2f" % (gLoad,)) 496 498 flight = self._flight 497 499 self.logger.message(self._aircraftState.timestamp, -
src/mlx/fsuipc.py
r1104 r1137 572 572 (0x0578, "d"), # Pitch 573 573 (0x057c, "d"), # Bank 574 (0x0580, "d") ] # Heading 574 (0x0580, "d"), # Heading 575 (0x11b8, "h")] # G-Load 575 576 576 577 TIME_SYNC_INTERVAL = 3.0 … … 1058 1059 tdRateCalculatedByFS = False 1059 1060 1061 gLoad = data[8] / 625.0 1062 1060 1063 self._aircraft.flareFinished(flareEnd, flareEndFS, 1061 1064 tdRate, tdRateCalculatedByFS, … … 1063 1066 Handler.fsuipc2Degrees(data[5]), 1064 1067 Handler.fsuipc2Degrees(data[6]), 1065 Handler.fsuipc2PositiveDegrees(data[7])) 1068 Handler.fsuipc2PositiveDegrees(data[7]), 1069 gLoad) 1066 1070 else: 1067 1071 self._addFlareRate(data[2]) -
src/mlx/xplane.py
r1136 r1137 676 676 ("sim/flightmodel/position/theta", TYPE_FLOAT), 677 677 ("sim/flightmodel/position/phi", TYPE_FLOAT), 678 ("sim/flightmodel/position/psi", TYPE_FLOAT) ] 678 ("sim/flightmodel/position/psi", TYPE_FLOAT), 679 ("sim/flightmodel/forces/g_nrml", TYPE_FLOAT) ] 679 680 680 681 TIME_SYNC_INTERVAL = 3.0 … … 1135 1136 tdRateCalculatedByFS = False 1136 1137 1138 gLoad = data[7] 1139 1137 1140 heading = data[6] 1138 1141 if heading<0.0: heading += 360.0 … … 1140 1143 self._aircraft.flareFinished(flareEnd, flareEndFS, 1141 1144 tdRate, tdRateCalculatedByFS, 1142 data[3], data[4], data[5], heading) 1145 data[3], data[4], data[5], heading, 1146 gLoad) 1143 1147 else: 1144 1148 self._addFlareRate(data[2])
Note:
See TracChangeset
for help on using the changeset viewer.