Page 1 of 1

Sensor fusion

Posted: 06:38, 12 Mar 2015
by aragon0510
Hello everyone

I am doing my sensor fusion project accelerometer + gyroscope. Right now, I am having trouble getting the orientation of the gyroscope in order to find the direction. After a lot of fooling around on the internet, I found the getOrientation() of android.hardware.SensorManager but it is in java.

So I want to ask everybody that is there any way to get that function getOrientation() and implement it in javascript ?

Thank you

Re: Sensor fusion

Posted: 13:40, 15 Mar 2015
by micke
This would be very cool to have!

Re: Sensor fusion

Posted: 15:37, 15 Mar 2015
by aragon0510
Hello Micke

Do you know how to do that ? I am looking for an sensortag app that has sensor fusion but found only one and it was built using Java

Re: Sensor fusion

Posted: 14:16, 17 Mar 2015
by micke
@aragon0510 Have not worked with this, I think it is quite complex to achieve. Do you know of any code examples or tutorials that could be used as a starting point?

Re: Sensor fusion

Posted: 19:19, 17 Mar 2015
by aragon0510
Micke

Sorry, I don't know anything like that, but I found a report and it seems that people used another approach to this sensor fusion, like a raw way to process the sensor data.
Now I am beginning to make my sensor fusion app with android studio and BLE stuff. Are you familiar with this BLE stuff in java because I am in need of some help ?

Re: Sensor fusion

Posted: 10:30, 08 May 2015
by micke
Hi, perhaps the source for the Cordova BLE plugin could be of some help?

https://github.com/evothings/cordova-bl ... d/BLE.java

Sounds very cool with your sensor fusion app, please post about it if you feel like it!

Best, Micke

Re: Sensor fusion

Posted: 14:53, 06 Sep 2015
by adirtyshame
aragon0510 wrote:Hello everyone

I am doing my sensor fusion project accelerometer + gyroscope. Right now, I am having trouble getting the orientation of the gyroscope in order to find the direction. After a lot of fooling around on the internet, I found the getOrientation() of android.hardware.SensorManager but it is in java.

So I want to ask everybody that is there any way to get that function getOrientation() and implement it in javascript ?

Thank you


Hi,

i don't know if it is still interesting for you, but i made a cordova plugin using sensor fusion.
https://github.com/adirtyshame/cordova- ... sor-fusion

Re: Sensor fusion

Posted: 21:56, 06 Sep 2015
by aragon0510
adirtyshame wrote:
aragon0510 wrote:Hello everyone

I am doing my sensor fusion project accelerometer + gyroscope. Right now, I am having trouble getting the orientation of the gyroscope in order to find the direction. After a lot of fooling around on the internet, I found the getOrientation() of android.hardware.SensorManager but it is in java.

So I want to ask everybody that is there any way to get that function getOrientation() and implement it in javascript ?

Thank you


Hi,

i don't know if it is still interesting for you, but i made a cordova plugin using sensor fusion.
https://github.com/adirtyshame/cordova- ... sor-fusion

thank you
I have finished this using native android sdk but I will check it out. It's always good to try new thing :D

Re: Sensor fusion

Posted: 18:00, 06 Apr 2016
by dbthomason
Removed

Re: Sensor fusion

Posted: 19:50, 06 Apr 2016
by alex
Googled fast as I haven't thought of this fairly straight-forward question, found this, might be helpful!

http://electronics.stackexchange.com/qu ... to-compass

lax