added calibration functionality for both accel and mag in the arduino code