Skip to content

Conversation

@mattermoran
Copy link

Added gravity sensor and fixed delay for orientation sensor
#33

roll = 360 - (0 - roll);
}

i++;
Copy link

@Kuluum Kuluum Oct 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to move that right under long curTime = System.currentTimeMillis();. Not to make excess work with geting orientation and performing data to send event.

public class SensorManagerModule extends ReactContextBaseJavaModule {
private static final String REACT_CLASS = "SensorManager";
private AccelerometerRecord mAccelerometerRecord = null;
private static final String REACT_CLASS = "SensorManager";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not the best idea to break the code alignment)

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.

2 participants