Changeset 340:36455b73b24f
- Timestamp:
- 11/17/12 13:08:43 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/mlx
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/acft.py
r338 r340 345 345 "Touchdown heading: %03.0f degrees" % (heading,)) 346 346 self.logger.message(self._aircraftState.timestamp, 347 "C entre of gravity:%.1f%%" % \347 "CG: %.1f%%" % \ 348 348 (self._aircraftState.cog*100.0,)) 349 349 -
src/mlx/checks.py
r338 r340 157 157 "Takeoff pitch: %.1f degrees" % (state.pitch,)) 158 158 logger.message(state.timestamp, 159 "Centre of gravity: %.1f%%" % (state.cog*100.0,)) 159 "CG/Trim: %.1f%%/%.2f" % \ 160 (state.cog*100.0, state.elevatorTrim)) 160 161 self._onTheGround = False 161 162 -
src/mlx/fs.py
r337 r340 258 258 - apAltitude: the autopilot altitude value in feet (float), 259 259 or None, if the state cannot be read properly 260 - elevatorTrim: a float value indicating the deflection of the elevator 261 trim in degrees 260 262 """ 261 -
src/mlx/fsuipc.py
r339 r340 11 11 import sys 12 12 import codecs 13 import math 13 14 14 15 if os.name == "nt" and "FORCE_PYUIPC_SIM" not in os.environ: … … 1194 1195 ("apHeading", 0x07cc, "H"), 1195 1196 ("apAltitudeHold", 0x07d0, "d"), 1196 ("apAltitude", 0x07d4, "u")] 1197 ("apAltitude", 0x07d4, "u"), 1198 ("elevatorTrim", 0x2ea0, "f")] 1197 1199 1198 1200 specialModels = [] … … 1399 1401 state.apAltitude = data[self._monidx_apAltitude] / \ 1400 1402 const.FEETTOMETRES / 65536.0 1403 1404 1405 state.elevatorTrim = data[self._monidx_elevatorTrim] * 180.0 / math.pi 1401 1406 1402 1407 return state -
src/mlx/gui/monitor.py
r337 r340 188 188 table.attach(self._position, 7, 10, 6, 7) 189 189 190 self._xpdrC = gtk.Label("XPDR CHARLIE") 191 table.attach(self._xpdrC, 10, 12, 6, 7) 190 (label, self._elevatorTrim) = self._createLabeledEntry("Trim:", 5) 191 table.attach(label, 10, 11, 6, 7) 192 table.attach(self._elevatorTrim, 11, 12, 6, 7) 192 193 193 194 self._apMaster = gtk.Label("AP MASTER") … … 207 208 table.attach(label, 6, 7, 7, 8) 208 209 table.attach(self._apAltitude, 7, 8, 7, 8) 210 211 self._xpdrC = gtk.Label("XPDR CHARLIE") 212 table.attach(self._xpdrC, 10, 12, 7, 8) 209 213 210 214 alignment.add(table) … … 282 286 self._windDirection.set_text("-") 283 287 self._position.set_text("-") 284 self._ xpdrC.set_sensitive(False)288 self._elevatorTrim.set_text("-") 285 289 self._apMaster.set_sensitive(False) 286 290 self._apHeadingHold.set_sensitive(False) … … 288 292 self._apAltitudeHold.set_sensitive(False) 289 293 self._apAltitude.set_text("-") 294 self._xpdrC.set_sensitive(False) 290 295 else: 291 296 self._timestamp.set_text(time.strftime("%H:%M:%S", … … 366 371 self._position.set_text(util.getCoordinateString((aircraftState.latitude, 367 372 aircraftState.longitude))) 368 self._xpdrC.set_sensitive(aircraftState.xpdrC) 369 373 self._elevatorTrim.set_text("%.2f" % (aircraftState.elevatorTrim,)) 370 374 self._apMaster.set_sensitive(aircraftState.apMaster) 371 375 self._apHeadingHold.set_sensitive(aircraftState.apHeadingHold) … … 374 378 self._apAltitude.set_text("%5.0f" % (aircraftState.apAltitude,)) 375 379 380 self._xpdrC.set_sensitive(aircraftState.xpdrC) 381 376 382 #------------------------------------------------------------------------------
Note:
See TracChangeset
for help on using the changeset viewer.