protected void ReadCalibrationData()
        {
            byte[] calibrationBytes = ReadMemory(0x16, 10);

            AccelerometerCalibration calibration = new AccelerometerCalibration(
                calibrationBytes[0], calibrationBytes[4],
                calibrationBytes[1], calibrationBytes[5],
                calibrationBytes[2], calibrationBytes[6]
                );

            _Accelerometer = new Accelerometer(calibration);
        }
 public Accelerometer(AccelerometerCalibration calibration)
 {
     _Calibration = calibration;
     _Raw = new AccelerometerAxes<ushort>();
     _Calibrated = new AccelerometerAxes<float>();
 }
Exemple #3
0
 public Accelerometer(AccelerometerCalibration calibration)
 {
     _Calibration = calibration;
     _Raw         = new AccelerometerAxes <ushort>();
     _Calibrated  = new AccelerometerAxes <float>();
 }
        protected void ReadCalibrationData()
        {
            byte[] calibrationBytes = ReadMemory(0x16, 10);

            AccelerometerCalibration calibration = new AccelerometerCalibration(
                calibrationBytes[0], calibrationBytes[4],
                calibrationBytes[1], calibrationBytes[5],
                calibrationBytes[2], calibrationBytes[6]
                );

            _Accelerometer = new Accelerometer(calibration);
        }