Package analoginput.calibration
Class MultiplyThenAdd
java.lang.Object
analoginput.calibration.MultiplyThenAdd
- All Implemented Interfaces:
SensorCalibration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
rawToValue
(double rawValue, CalibrationData calibrationData) Convert a value from an ADC, which will probably have already been converted to volts or amps into an 'engineering' unit, e.g.
-
Constructor Details
-
MultiplyThenAdd
public MultiplyThenAdd()
-
-
Method Details
-
rawToValue
public double rawToValue(double rawValue, CalibrationData calibrationData) throws CalibrationException Description copied from interface:SensorCalibration
Convert a value from an ADC, which will probably have already been converted to volts or amps into an 'engineering' unit, e.g. depth, heading, etc.- Specified by:
rawToValue
in interfaceSensorCalibration
- Parameters:
rawValue
- Value from acquisition device- Returns:
- value in engineering units.
- Throws:
CalibrationException
-