public double ConvertData(double voltage, CalibrationValue cal) { Voltage = voltage; a = cal._a; b = cal._b; Pressure = ((Voltage - b) / a); return(Pressure); }
public double ConvertData(double voltage, CalibrationValue cal) { a = cal._a; b = cal._b; // Calculate pressure from voltage Voltage = voltage; //CalibrationValue = cal; return(Pressure = (Voltage / a) - b); }