Type Function Library system.* Return value none Revision Current Public Release (2018.3326) Keywords gyroscope See also gyroscope
Sets the frequency of gyroscope events in Hz. Gyroscope events are a significant drain on battery, so only increase the frequency when you need faster responses.
If possible, lower the frequency to conserve battery life.
On iOS devices, these are the frequency limits:
system.setGyroscopeInterval( frequency )
Number. Sets the sample interval in Hertz (cycles per second), i.e. the number of measurements to take per second. If you set the frequency to 10, then the system will take 10 measurements per second.
-- Set the measurement interval to 50 Hz. -- This makes the system take 50 measurements per second. system.setGyroscopeInterval( 50 )