protected void ProcessLightBits3(LightBits3 bits)
 {
     SetValue("Electronic", "flcs pmg indicator", new BindingValue(bits.HasFlag(LightBits3.FlcsPmg)));
     SetValue("Electronic", "main gen indicator", new BindingValue(bits.HasFlag(LightBits3.MainGen)));
     SetValue("Electronic", "standby generator indicator", new BindingValue(bits.HasFlag(LightBits3.StbyGen)));
     SetValue("Electronic", "epu gen indicator", new BindingValue(bits.HasFlag(LightBits3.EpuGen)));
     SetValue("Electronic", "epu pmg indicator", new BindingValue(bits.HasFlag(LightBits3.EpuPmg)));
     SetValue("Electronic", "to flcs indicator", new BindingValue(bits.HasFlag(LightBits3.ToFlcs)));
     SetValue("Electronic", "flcs rly indicator", new BindingValue(bits.HasFlag(LightBits3.FlcsRly)));
     SetValue("Electronic", "bat fail indicator", new BindingValue(bits.HasFlag(LightBits3.BatFail)));
     SetValue("EPU", "hydrazine indicator", new BindingValue(bits.HasFlag(LightBits3.Hydrazine)));
     SetValue("EPU", "air indicator", new BindingValue(bits.HasFlag(LightBits3.Air)));
     SetValue("Caution", "electric bus fail indicator", new BindingValue(bits.HasFlag(LightBits3.Elec_Fault)));
     SetValue("Caution", "lef fault indicator", new BindingValue(bits.HasFlag(LightBits3.Lef_Fault)));
     SetValue("General", "power off", new BindingValue(bits.HasFlag(LightBits3.Power_Off)));
     SetValue("Caution", "engine 2 fire indicator", new BindingValue(bits.HasFlag(LightBits3.Eng2_Fire)));
     SetValue("General", "lock cue", new BindingValue(bits.HasFlag(LightBits3.Lock)));
     SetValue("General", "shoot cue", new BindingValue(bits.HasFlag(LightBits3.Shoot)));
     SetValue("Landing Gear", "nose gear indicator", new BindingValue(bits.HasFlag(LightBits3.NoseGearDown)));
     SetValue("Landing Gear", "left gear indicator", new BindingValue(bits.HasFlag(LightBits3.LeftGearDown)));
     SetValue("Landing Gear", "right gear indicator", new BindingValue(bits.HasFlag(LightBits3.RightGearDown)));
 }
Esempio n. 2
0
 public FalconLightBit3(string group, string label, LightBits3 bit)
     : base(group, label, (int)bit)
 {
 }
Esempio n. 3
0
 public FalconLightGearDown(string group, string label, LightBits3 bit)
     : base(group, label, bit)
 {
 }
 protected void ProcessLightBits3(LightBits3 bits)
 {
     SetValue("Electronic", "flcs pmg indicator", new BindingValue(bits.HasFlag(LightBits3.FlcsPmg)));
     SetValue("Electronic", "main gen indicator", new BindingValue(bits.HasFlag(LightBits3.MainGen)));
     SetValue("Electronic", "standby generator indicator", new BindingValue(bits.HasFlag(LightBits3.StbyGen)));
     SetValue("Electronic", "epu gen indicator", new BindingValue(bits.HasFlag(LightBits3.EpuGen)));
     SetValue("Electronic", "epu pmg indicator", new BindingValue(bits.HasFlag(LightBits3.EpuPmg)));
     SetValue("Electronic", "to flcs indicator", new BindingValue(bits.HasFlag(LightBits3.ToFlcs)));
     SetValue("Electronic", "flcs rly indicator", new BindingValue(bits.HasFlag(LightBits3.FlcsRly)));
     SetValue("Electronic", "bat fail indicator", new BindingValue(bits.HasFlag(LightBits3.BatFail)));
     SetValue("EPU", "hydrazine indicator", new BindingValue(bits.HasFlag(LightBits3.Hydrazine)));
     SetValue("EPU", "air indicator", new BindingValue(bits.HasFlag(LightBits3.Air)));
     SetValue("Caution", "electric bus fail indicator", new BindingValue(bits.HasFlag(LightBits3.Elec_Fault)));
     SetValue("Caution", "lef fault indicator", new BindingValue(bits.HasFlag(LightBits3.Lef_Fault)));
     SetValue("General", "power off", new BindingValue(bits.HasFlag(LightBits3.Power_Off)));
     SetValue("Caution", "engine 2 fire indicator", new BindingValue(bits.HasFlag(LightBits3.Eng2_Fire)));
     SetValue("General", "lock cue", new BindingValue(bits.HasFlag(LightBits3.Lock)));
     SetValue("General", "shoot cue", new BindingValue(bits.HasFlag(LightBits3.Shoot)));
     SetValue("Landing Gear", "nose gear indicator", new BindingValue(bits.HasFlag(LightBits3.NoseGearDown)));
     SetValue("Landing Gear", "left gear indicator", new BindingValue(bits.HasFlag(LightBits3.LeftGearDown)));
     SetValue("Landing Gear", "right gear indicator", new BindingValue(bits.HasFlag(LightBits3.RightGearDown)));
 }