private double CalculateLaserSetPoint(double[] masterFitCoefficients, double[] slaveFitCoefficients)
{
double setPoint = new double();
if (slaveFitCoefficients[1] > LOWER_CC_VOLTAGE_LIMIT
&& slaveFitCoefficients[1] < UPPER_CC_VOLTAGE_LIMIT) //Only change limits if fits are reasonable.
{
setPoint = Math.Round(slaveFitCoefficients[1] - masterFitCoefficients[1], 4);
}
else
{
setPoint = 0.0;
}
return setPoint;
}