def __init__(self, parent=None): super(Screen, self).__init__(parent) self.parent = parent p = self.parent.palette() self.screenColor = (0,0,0) if self.screenColor: p.setColor(self.backgroundRole(), QColor(*self.screenColor)) self.setPalette(p) self.setAutoFillBackground(True) #self.ai = VirtualVfr(self) self.ai = ai.AI(self) self.ai.fontSize = 20 self.ai.pitchDegreesShown = 90 self.ai.visiblePitchAngle = 22 # Amount of visible pitch angle marks self.alt_tape = altimeter.Altimeter_Tape(self) self.vsi = vsi.VSI_PFD(self) self.as_tape = airspeed.Airspeed_Tape(self) self.hsi = hsi.HSI(self, font_size=20, fgcolor="#aaaaaa", bgcolor="#aaaaaa") self.hsi.tickSize = 12 # Pointer Visibility [Top, Bottom, Right, Left] self.hsi.visiblePointers = [True, True, False, False] self.heading_disp = hsi.HeadingDisplay(self, font_size=20, fgcolor="#ffffff") # self.alt_setting = altimeter.Altimeter_Setting(self) self.alt_setting = gauges.NumericDisplay(self) self.alt_setting.dbkey = "BARO" self.alt_setting.decimalPlaces = 2 self.check_engine = CheckEngine(self)
def __init__(self, parent=None): super(Screen, self).__init__(parent) self.parent = parent p = self.parent.palette() self.screenColor = (0, 0, 0) if self.screenColor: p.setColor(self.backgroundRole(), QColor(*self.screenColor)) self.setPalette(p) self.setAutoFillBackground(True) self.airspeed = airspeed.Airspeed(self) self.ai = ai.AI(self) self.ai.fontSize = 12 self.ai.bankMarkSize = 7 self.ai.pitchDegreesShown = 60 self.altimeter = altimeter.Altimeter(self) self.tc = tc.TurnCoordinator(self) self.hsi = hsi.HSI(self, font_size=12, fgcolor=Qt.white) self.heading_disp = hsi.HeadingDisplay(self, font_size=17, fgcolor=Qt.white) self.vsi = vsi.VSI_Dial(self)
def __init__(self, parent=None): super(Screen, self).__init__(parent) self.parent = parent p = self.parent.palette() self.screenColor = (0, 0, 0) if self.screenColor: p.setColor(self.backgroundRole(), QColor(*self.screenColor)) self.setPalette(p) self.setAutoFillBackground(True) self.ai = ai.AI(self) self.ai.fontSize = 19 self.ai.bankMarkSize = 10 self.ai.pitchDegreesShown = 60 self.ai.bankAngleRadius = 150 self.alt_tape = altimeter.Altimeter_Tape(self) #self.alt_Trend = vsi.Alt_Trend_Tape(self) self.as_tape = airspeed.Airspeed_Tape(self) #self.as_Trend = vsi.AS_Trend_Tape(self) #self.asd_Box = airspeed.Airspeed_Mode(self) self.head_tape = hsi.DG_Tape(self) #self.alt_setting = altimeter.Altimeter_Setting(self) self.map_g = gauges.ArcGauge(self) self.map_g.name = "MAP" self.map_g.decimalPlaces = 1 self.map_g.dbkey = "MAP1" self.rpm = gauges.ArcGauge(self) self.rpm.name = "RPM" self.rpm.decimalPlaces = 0 self.rpm.dbkey = "TACH1" self.op = gauges.HorizontalBar(self) self.op.name = "Oil Press" self.op.decimalPlaces = 1 self.op.dbkey = "OILP1" self.ot = gauges.HorizontalBar(self) self.ot.name = "Oil Temp" # Use a lambda to convert the values internally self.ot.conversionFunction1 = lambda x: x * (9.0 / 5.0) + 32.0 self.ot.conversionFunction2 = lambda x: x # This causes the units sent from the server to be overridden self.ot.unitsOverride1 = u'\N{DEGREE SIGN}F' self.ot.unitsOverride2 = u'\N{DEGREE SIGN}C' self.ot.setUnitSwitching() self.ot.dbkey = "OILT1" self.fuel = gauges.HorizontalBar(self) self.fuel.name = "Fuel Qty" self.fuel.decimalPlaces = 1 self.fuel.dbkey = "FUELQT" self.ff = gauges.HorizontalBar(self) self.ff.name = "Fuel Flow" self.ff.decimalPlaces = 1 self.ff.dbkey = "FUELF1" self.cht = gauges.HorizontalBar(self) self.cht.name = "Max CHT" # Use a lambda to convert the values internally self.cht.conversionFunction1 = lambda x: x * (9.0 / 5.0) + 32.0 self.cht.conversionFunction2 = lambda x: x # This causes the units sent from the server to be overridden self.cht.unitsOverride1 = u'\N{DEGREE SIGN}F' self.cht.unitsOverride2 = u'\N{DEGREE SIGN}C' self.cht.unitGroup = "Temperature" self.cht.setUnitSwitching() self.cht.dbkey = "CHTMAX1" self.egt = gauges.HorizontalBar(self) self.egt.name = "Avg EGT" # Use a lambda to convert the values internally self.egt.conversionFunction1 = lambda x: x * (9.0 / 5.0) + 32.0 self.egt.conversionFunction2 = lambda x: x # This causes the units sent from the server to be overridden self.egt.unitsOverride1 = u'\N{DEGREE SIGN}F' self.egt.unitsOverride2 = u'\N{DEGREE SIGN}C' self.egt.unitGroup = "Temperature" self.egt.setUnitSwitching() self.egt.decimalPlaces = 0 self.egt.dbkey = "EGTAVG1"