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

Sensor issue #4

Open
Solony opened this issue Jul 12, 2017 · 2 comments
Open

Sensor issue #4

Solony opened this issue Jul 12, 2017 · 2 comments

Comments

@Solony
Copy link

Solony commented Jul 12, 2017

Hi, I found your work and it looks great.
I'm actually developing my own geolocational AR app.
I'm using sensors in my HTC A9.
Everything is done so far but my images are not steady at all.
It shakes constantly even though I've implemented low-pass filter.
Have you ever encountered such situation? How do you overcome it?

@Bhide
Copy link
Contributor

Bhide commented Jul 12, 2017

Try changing the ALPHA value (currently 0.25) in the low pass filter method.

protected float[] lowPass( float[] input, float[] output ) {
    if ( output == null ) return input;
     
    for ( int i=0; i<input.length; i++ ) {
        output[i] = output[i] + ALPHA * (input[i] - output[i]);
    }
    return output;
}

@Solony
Copy link
Author

Solony commented Jul 13, 2017

Yes it helps.
But it's not as stable as I want.
Is it possible to achieve the stability like the video?
https://www.youtube.com/watch?v=8U3vWETmk2U
Or does it use other equipment along with built-in sensors?

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

No branches or pull requests

2 participants