Ejemplo n.º 1
0
        // SV1EIA AIR
        public void AIRStore()
        {
            Interpolation IQPhase = new Interpolation();
            Interpolation IQGain = new Interpolation();

            if (count_test < 1) return;
            IQGain.ClearPoints();
            IQPhase.ClearPoints();
            if (bin_test[0] != 0 )
            {
                IQGain.AddPoint(0,(gain_test[0]+gain_test[count_test-1])/2);
                IQPhase.AddPoint(0,(phase_test[0]+phase_test[count_test-1])/2);
            }
            if (bin_test[count_test-1] != 4095 )
            {
                IQGain.AddPoint(4095,(gain_test[0]+gain_test[count_test-1])/2);
                IQPhase.AddPoint(4095,(phase_test[0]+phase_test[count_test-1])/2);
            }
            for (int i=0; i < count_test; i++)
            {
                IQGain.AddPoint( bin_test[i], gain_test[i]);
                IQPhase.AddPoint( bin_test[i], phase_test[i]);
            }
            for (int i=0; i<4096; i++)
            {
                gain[i] = IQGain.GetInterpolatedY((float)i);
                phase[i] = IQPhase.GetInterpolatedY((float)i);
                DttSP.SetCorrectIQBin(0,0,phase[i],gain[i],i);
            }
            DttSP.SetCorrectIQBinEnable(0,0);
        }