protected void ProcessLightBits(LightBits bits) { SetValue("Left Eyebrow", "master caution indicator", new BindingValue(bits.HasFlag(LightBits.MasterCaution))); SetValue("Left Eyebrow", "tf-fail indicator", new BindingValue(bits.HasFlag(LightBits.TF))); SetValue("Right Eyebrow", "engine fire indicator", new BindingValue(bits.HasFlag(LightBits.ENG_FIRE))); SetValue("Right Eyebrow", "hydraulic/oil indicator", new BindingValue(bits.HasFlag(LightBits.HYD) || bits.HasFlag(LightBits.OIL))); SetValue("Right Eyebrow", "canopy indicator", new BindingValue(bits.HasFlag(LightBits.CAN))); SetValue("Right Eyebrow", "takeoff landing config indicator", new BindingValue(bits.HasFlag(LightBits.T_L_CFG))); SetValue("Caution", "stores config indicator", new BindingValue(bits.HasFlag(LightBits.CONFIG))); SetValue("AOA Indexer", "above indicator", new BindingValue(bits.HasFlag(LightBits.AOAAbove))); SetValue("AOA Indexer", "on indicator", new BindingValue(bits.HasFlag(LightBits.AOAOn))); SetValue("AOA Indexer", "below indicator", new BindingValue(bits.HasFlag(LightBits.AOABelow))); SetValue("Refuel Indexer", "ready indicator", new BindingValue(bits.HasFlag(LightBits.RefuelRDY))); SetValue("Refuel Indexer", "air/nws indicator", new BindingValue(bits.HasFlag(LightBits.RefuelAR))); SetValue("Refuel Indexer", "disconnect indicator", new BindingValue(bits.HasFlag(LightBits.RefuelDSC))); SetValue("Caution", "flight control system indicator", new BindingValue(bits.HasFlag(LightBits.FltControlSys))); SetValue("Caution", "leading edge flaps indicator", new BindingValue(bits.HasFlag(LightBits.LEFlaps))); SetValue("Caution", "engine fault indticator", new BindingValue(bits.HasFlag(LightBits.EngineFault))); SetValue("Caution", "overheat indicator", new BindingValue(bits.HasFlag(LightBits.Overheat))); SetValue("Caution", "low fuel indicator", new BindingValue(bits.HasFlag(LightBits.FuelLow))); SetValue("Caution", "avionics indicator", new BindingValue(bits.HasFlag(LightBits.Avionics))); SetValue("Caution", "radar altimeter indicator", new BindingValue(bits.HasFlag(LightBits.RadarAlt))); SetValue("Caution", "iff indicator", new BindingValue(bits.HasFlag(LightBits.IFF))); SetValue("Caution", "ecm indicator", new BindingValue(bits.HasFlag(LightBits.ECM))); SetValue("Caution", "hook indicator", new BindingValue(bits.HasFlag(LightBits.Hook))); SetValue("Caution", "nws fail indicator", new BindingValue(bits.HasFlag(LightBits.NWSFail))); SetValue("Caution", "cabin pressure indicator", new BindingValue(bits.HasFlag(LightBits.CabinPress))); SetValue("Misc", "tfs stanby indicator", new BindingValue(bits.HasFlag(LightBits.TFR_STBY))); }
public FalconLightBit1(string group, string label, LightBits bit) : base(group, label, (int)bit) { }