Added setAccelDataRate to set the accelerometer data rate