added accelerometer and gyro range settings