PIRAT calibration code mased on ADXL645 accelerometer