Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofxAndroidMagneticField proposal [Do not Merge] #2275

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pelayomendez
Copy link
Contributor

First implementation of the MagneticField Sensor in Android. Needs testing and feedback from Android tablets and phones.

The compass uses accelerometer to improve sensor feedback trying to avoid 2.3 API and gyroscope / gravity hardware so maybe it´s not the most accurate way.

Magnetic field is implemented in a different JAVA class, not sure if it should share class with other Android sensors similar to iOS CoreLocation.

An example is included for testing.

Best,

P.

@roymacdonald
Copy link
Member

Hi, nice work.
I did an app some time ago using the magnetic field sensor in an android phone.
I just used wrote a wrapper for the sensors API, and worked really well. I actually wrote it for all the available sensors, as I had to test which one worked better.
I never pushed it to github because the code was quite dirty and I modified several core files. @arturoc should there be a particular way in which the sensors should be implemented?

You can take a look at what I did here:
https://vimeo.com/63744681
You were allowed to draw just by moving the phone. I was really accurate considering that this thing wasn't intended for doing such thing.
Best

@pelayomendez
Copy link
Contributor Author

Hi Roy,

Nice to hear that. I would be great if OF Android can take advantage of all the work you´ve already done on this. And I´m really curious about it. Please let me know if I can help in any way.

Best.

@tpltnt
Copy link
Contributor

tpltnt commented Feb 13, 2016

What is the current state of affairs?

@roymacdonald
Copy link
Member

Hi. Nothing from my side. Haven't looked at this in a long time. Right now I can't but I'll keep it in mind. I'll let you know about any progress.
best

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants