protected void ProcessHsiBits(HsiBits bits, float desiredCourse, float bearingToBeacon) { SetValue("HSI", "to flag", new BindingValue(bits.HasFlag(HsiBits.ToTrue))); SetValue("HSI", "from flag", new BindingValue(bits.HasFlag(HsiBits.FromTrue))); SetValue("HSI", "ils warning flag", new BindingValue(bits.HasFlag(HsiBits.IlsWarning))); SetValue("HSI", "course warning flag", new BindingValue(bits.HasFlag(HsiBits.CourseWarning))); SetValue("HSI", "off flag", new BindingValue(bits.HasFlag(HsiBits.HSI_OFF))); SetValue("HSI", "init flag", new BindingValue(bits.HasFlag(HsiBits.Init))); SetValue("ADI", "off flag", new BindingValue(bits.HasFlag(HsiBits.ADI_OFF))); SetValue("ADI", "aux flag", new BindingValue(bits.HasFlag(HsiBits.ADI_AUX))); SetValue("ADI", "gs flag", new BindingValue(bits.HasFlag(HsiBits.ADI_GS))); SetValue("ADI", "loc flag", new BindingValue(bits.HasFlag(HsiBits.ADI_LOC))); SetValue("Backup ADI", "off flag", new BindingValue(bits.HasFlag(HsiBits.BUP_ADI_OFF))); SetValue("VVI", "off flag", new BindingValue(bits.HasFlag(HsiBits.VVI))); SetValue("AOA", "off flag", new BindingValue(bits.HasFlag(HsiBits.AOA))); }
protected void ProcessHsiBits(HsiBits bits, float desiredCourse, float bearingToBeacon, BlinkBits blinkBits, int time) { SetValue("HSI", "to flag", new BindingValue(bits.HasFlag(HsiBits.ToTrue))); SetValue("HSI", "from flag", new BindingValue(bits.HasFlag(HsiBits.FromTrue))); SetValue("HSI", "ils warning flag", new BindingValue(bits.HasFlag(HsiBits.IlsWarning))); SetValue("HSI", "course warning flag", new BindingValue(bits.HasFlag(HsiBits.CourseWarning))); SetValue("HSI", "off flag", new BindingValue(bits.HasFlag(HsiBits.HSI_OFF))); SetValue("HSI", "init flag", new BindingValue(bits.HasFlag(HsiBits.Init))); SetValue("ADI", "off flag", new BindingValue(bits.HasFlag(HsiBits.ADI_OFF))); SetValue("ADI", "aux flag", new BindingValue(bits.HasFlag(HsiBits.ADI_AUX))); SetValue("ADI", "gs flag", new BindingValue(bits.HasFlag(HsiBits.ADI_GS))); SetValue("ADI", "loc flag", new BindingValue(bits.HasFlag(HsiBits.ADI_LOC))); SetValue("Backup ADI", "off flag", new BindingValue(bits.HasFlag(HsiBits.BUP_ADI_OFF))); SetValue("VVI", "off flag", new BindingValue(bits.HasFlag(HsiBits.VVI))); SetValue("AOA", "off flag", new BindingValue(bits.HasFlag(HsiBits.AOA))); SetValue("AVTR", "avtr indicator", new BindingValue(bits.HasFlag(HsiBits.AVTR))); UpdateBlinkingLightState(bits.HasFlag(HsiBits.OuterMarker), blinkBits.HasFlag(BlinkBits.OuterMarker), ref _outerMarkerLastTick, ref _outerMarkerOnState); SetValue("HSI", "Outer marker indicator", new BindingValue(_outerMarkerOnState)); UpdateBlinkingLightState(bits.HasFlag(HsiBits.MiddleMarker), blinkBits.HasFlag(BlinkBits.MiddleMarker), ref _middleMarkerLastTick, ref _middleMarkerOnState); SetValue("HSI", "Middle marker indicator", new BindingValue(_middleMarkerOnState)); }