コード例 #1
0
        protected void ApplyGamma(OC_Mode mode, int band)
        {
            RGB AM0 = ocparam.Get_OC_Mode_AM0(mode, band);
            RGB AM1 = ocparam.Get_OC_Mode_AM1(mode, band);

            byte[][] output_cmds = ModelFactory.Get_DP213_Instance().Get_Gamma_AM1_AM0_CMD(DP213OCSet.GetGammaSet(mode), band, ocparam.Get_OC_Mode_RGB(mode, band), AM1, AM0);
            cmd.SendMipiCMD(output_cmds);
            Thread.Sleep(20);
        }
コード例 #2
0
        private void Sub_AM1_Compensation(OC_Mode mode, int band)
        {
            if (vars.Optic_Compensation_Stop == false)
            {
                RGB_Double HBM_GR1_Voltage = ocparam.Get_OC_Mode_RGB_Voltage(mode, band, gray: 10);
                RGB_Double AM1_Margin      = DP213OCSet.Get_AM1_Margin();

                RGB_Double New_AM1_Voltage = Get_New_AM1_Voltage(HBM_GR1_Voltage, AM1_Margin);
                RGB_Double AM0_Voltage     = ocparam.Get_OC_Mode_AM0_Voltage(mode, band);

                if (Is_All_AM1_Voltages_Lower_Than_AM0_Voltages(New_AM1_Voltage, AM0_Voltage))
                {
                    ocparam.Set_OC_Mode_AM1(New_AM1_Voltage, mode, band);
                    Set_All_AM1_WithSameValues(ocparam.Get_OC_Mode_AM1(mode, band));
                }
                else
                {
                    vars.Optic_Compensation_Stop    = true;
                    vars.Optic_Compensation_Succeed = false;
                    api.WriteLine("(Out of Range)At lease One AM1 > AM0, AM1 Compensation NG", Color.Red);
                }
            }
        }