Giter Site home page Giter Site logo

androidsensorfusion's Introduction

AndroidSensorFusion
com.goatstone.util.SensorFusion

Get, fuse and display sensor information for Android.

Usage:

private SensorFusion sensorFusion;
sensorFusion = new SensorFusion();
sensorFusion.setMode(SensorFusion.Mode.ACC_MAG);

double azimuthValue = sensorFusion.getAzimuth();
double rollValue =  sensorFusion.getRoll();
double pitchValue =  sensorFusion.getPitch();

androidsensorfusion's People

Contributors

joseherminiocollas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

androidsensorfusion's Issues

Serious bug that prevents gyroscope data from being included

private float timestamp;

The above declaration is faulty. It should be declared as a long.

It being declared as a float prevents any gyroscope rotation from being calculated, because the time interval between two timestamps is generally not within the precision capability of a float variable. Hence dT is always calculated as zero. Hence the rotation vector calculated from gyro is always (0, 0, 0).

Using GYRO mode with device without magnetometer

Hello
Thanks for you great work.

When I try to use your lib in GYRO mode with the device without magnetometer it work well till I move my device, once I stop moving my device values of Azimuth, Roll and Pitch start moving toward zero and finally end up with settling at value 0.

Actually I'm drawing a cursor over my application using sensor movement with the help of your lib. I'm normalizing Azimuth and Roll values and computing the exact X and Y coordinates to draw the cursor.

Can you please help me to prevent the values from becoming zero after device become steady.

You can replicate my issue on device with magnetometer by disabling magnetometer sensor.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.