Fixed a scale factor in the accelerometer which was off by a factor of 2