public void Calibrate(AccelerometerAxes <ushort> raw, AccelerometerAxes <float> calibrating) { calibrating.X = CalibrateValue(raw.X, XZero, XOne); // 131 158 calibrating.Y = CalibrateValue(raw.Y, YZero, YOne); // 131 158 calibrating.Z = CalibrateValue(raw.Z, ZZero, ZOne); // 129 155 }
public Accelerometer(AccelerometerCalibration calibration) { _Calibration = calibration; _Raw = new AccelerometerAxes <ushort>(); _Calibrated = new AccelerometerAxes <float>(); }