Accelerometer calibration+velocity calculation