Ad

gyronorm.js: Mobile Sensor Data Normalization

GyroNorm.js accesses, normalizes, and combines gyroscope and accelerometer data from mobile devices, providing consistent values across platforms. It's a JavaScript library for accurate motion tracking.
Screenshot of dorukeker/gyronorm.js homepage

GyroNorm.js accesses gyroscope and accelerometer data from web browsers on mobile devices. It normalizes these values to provide consistent results across different devices, addressing inconsistencies inherent in device-specific implementations. The library leverages JavaScript Promises and builds upon the FullTilt library for optimal performance and compatibility. It solves the problem of obtaining reliable, device-agnostic motion data for JavaScript applications.

GyroNorm.js offers a robust and well-structured API for accessing motion data. It provides options for game-based or world-based orientation calculations, enhancing flexibility. It supports both AMD and ES6 module systems, simplifying integration into various projects. The library's clear documentation and API ensure ease of use and understanding. It offers backward compatibility guidance, facilitating upgrades.

  • Orientation Data: Provides alpha, beta, and gamma angles for device orientation.
  • Acceleration Data: Offers x, y, and z acceleration values, including gravity-related components.
  • Normalization: Normalizes acceleration and rotation rate values for consistent readings across devices.
  • Configuration Options: Allows customization of frequency, gravity normalization, and orientation base.
  • Error Handling: Provides mechanisms for handling errors and logging messages.
  • Compatibility: Tested on a range of Android and iOS devices, ensuring broad compatibility.
  • Module Support: Integrates seamlessly with popular module bundlers like RequireJS and Webpack.

The project is no longer actively maintained by the original author. While the repository remains open-source, feature development and issue resolution are discontinued. However, the library serves as a solid foundation and has been widely used. The focus is on stability and continued availability. The documentation provides adequate guidance, although updates for newer browser versions may be limited.

GyroNorm.js benefits developers needing consistent motion data in web applications for mobile devices. It is suitable for games, interactive experiences, and applications requiring accurate device orientation and acceleration measurements. It offers a streamlined approach compared to manually handling device-specific sensor APIs, presenting a valuable time-saving solution.

Languages:
Summarize:
Share:
Stars
645
Forks
63
Issues
12
Created
12 years ago
Commit
6 years ago
License
MIT
Archived
No
Updated 17 days ago

Similar Repositories