Sets the frequency of gyroscope events in Hertz. Gyroscope events are a significant drain on battery, so only increase the frequency when you need faster responses as in games. Always try to lower the frequency whenever possible to conserve battery life.
system.setGyroscopeInterval( frequency )
-- Set the measurement interval to 50 Hz. -- This makes the system take 50 measurements per second. system.setGyroscopeInterval( 50 )
frequency
Sets the sample interval in Hertz.
Hertz is cycles per second, or in this case, the number of measurements to take per second. So, if you set the frequency to 10, then the system will take 10 measurements per second.
Maximum value allowed: 100 Hz
Minimum value allowed: 10 Hz
Nothing