Interval period on accelerometer and gyroscope

Add functions to change interval period on accelerometer and gyroscope sensors.