Пример #1
0
        public double ConvertData(double voltage, CalibrationValue cal)
        {
            Voltage  = voltage;
            a        = cal._a;
            b        = cal._b;
            Pressure = ((Voltage - b) / a);

            return(Pressure);
        }
Пример #2
0
        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);
        }