Beispiel #1
0
        private void CalculateFixedDeflection()
        {
            double desiredSpineAMO = radioInput2.Checked ?
                                     (double)numericInput2.Value :
                                     UnitsConverter.ASTMtoAMO((double)numericInput1.Value);

            double rawTension = Spinetester.instance.CurrentArrow.Spine.Raw;

            //double tension = 6750.87 * 0.06479891 / 1000.0; //* 0.00006479891

            // 5-15mm range
            double closestDeflection = 10.0;

            //for (double i = 1.0; i >= 0.01; i *= 0.1)
            //    closestDeflection = FindSpineClosestDeflection(tension, desiredSpineAMO, closestDeflection, i);

            // First pass 1.0
            closestDeflection = FindSpineClosestDeflection(rawTension, desiredSpineAMO, closestDeflection, 1.0);

            // Second pass 0.1
            closestDeflection = FindSpineClosestDeflection(rawTension, desiredSpineAMO, closestDeflection, 0.1);

            // Third pass 0.01
            closestDeflection = FindSpineClosestDeflection(rawTension, desiredSpineAMO, closestDeflection, 0.01);


            SetNumericValue(numericCalibration, (decimal)closestDeflection);
        }