Changeset 243:1a42c5aa468b
- Timestamp:
- 06/10/12 12:50:30 (13 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r241 r243 300 300 self.logger.message(self._aircraftState.timestamp, 301 301 "Touchdown heading: %03.0f degrees" % (heading,)) 302 self.logger.message(self._aircraftState.timestamp, 303 "Centre of gravity: %.03f" % \ 304 (self._aircraftState.cog,)) 302 305 303 306 def cancelFlare(self): -
src/mlx/checks.py
r241 r243 142 142 logger.message(state.timestamp, 143 143 "Takeoff pitch: %.1f degrees" % (state.pitch,)) 144 logger.message(state.timestamp, 145 "Centre of gravity: %.03f" % (state.cog,)) 144 146 self._onTheGround = False 145 147 -
src/mlx/fs.py
r209 r243 214 214 - windDirection: the direction of the wind at the aircraft in degrees (float) 215 215 - visibility: the visibility in metres (float) 216 - cog: the centre of gravity 216 217 217 218 FIXME: needed when taxiing only: -
src/mlx/fsuipc.py
r240 r243 1162 1162 ("windSpeed", 0x0e90, "H"), 1163 1163 ("windDirection", 0x0e92, "H"), 1164 ("visibility", 0x0e8a, "H") ]1165 1164 ("visibility", 0x0e8a, "H"), 1165 ("cog", 0x2ef8, "f")] 1166 1166 1167 1167 specialModels = [] … … 1338 1338 1339 1339 state.visibility = data[self._monidx_visibility]*1609.344/100.0 1340 1341 state.cog = data[self._monidx_cog] 1340 1342 1341 1343 return state -
src/mlx/pyuipc_sim.py
r213 r243 261 261 for i in range(0, Values.HOTKEY_SIZE): 262 262 self.hotkeyTable.append([0, 0, 0, 0]) 263 264 self.cog = 0.27 263 265 264 266 self.pmdg_737ng_switches = 0 … … 438 440 elif offset==0x2200: # Engine #3 N1 439 441 return self.n1[self.ENGINE_3] 442 elif offset==0x2ef8: # Centre of Gravity 443 return self.cog 440 444 elif offset==0x30c0: # Gross weight 441 445 return (self.zfw + sum(self.fuelWeights)) * const.KGSTOLB … … 659 663 elif offset==0x2200: # Engine #3 N1 660 664 self.n1[self.ENGINE_3] = value 665 elif offset==0x2ef8: # Centre of Gravity 666 self.cog = value 661 667 elif offset==0x30c0: # Gross weight 662 668 raise FSUIPCException(ERR_DATA) … … 1253 1259 lambda word: long(word, 16)) 1254 1260 1261 self._valueHandlers["cog"] = (0x2ef8, "f", lambda value: value, 1262 lambda word: float(word)) 1263 1255 1264 self._valueHandlers["pmdg_737ng_switches"] = (0x6202, "b", 1256 1265 lambda value: value,
Note:
See TracChangeset
for help on using the changeset viewer.