Device sensors are flaky - real orientation code needed #19

Closed
opened 2016-07-31 15:14:46 +02:00 by nik · 2 comments
nik commented 2016-07-31 15:14:46 +02:00 (Migrated from edugit.org)

Device sensor data is very flaky and slow in Firefox for Android. Not sure if it's Firefox, Android or my device.

On Eike's device, no sensor data appears at all.

My device: SAMSUNG Galaxy Note 4 (SM-N910F), CM 12.1-20160711-NIGHTLY (Android 5.1.1)
Eike's device: Sony XPERIA M4 Aqua (E2303), Sony-Android 5.0

It is also unclear how to get more or less calibrated values for the alpha oreintation value. What we really need is the compass orientation the device is pointed at, be it when it is flat or held vertically. We need to find out which compass direction the camera is facing.

Note for (Hacktoberfest) contributors

Veripeditus uses Angular.JS. Maybe this is not a good idea at all. However, you can find a description on how we handle device data, etc. in commit 4c39f75bba. It is about loading game data, but basically, getting device information works the same way. Right now, Angular.JS only processes broadcasts from the DeviceService once per second, but that is another issue. What we do need is a way to get the real compass bearing from the alpha, beta and gamma values received in www/js/control/cam.js.

Understanding the code base right now might be a bit difficult, but we will get you started on it and support you with all means. Just raise your voice if you want to help us ☺!

Device sensor data is very flaky and slow in Firefox for Android. Not sure if it's Firefox, Android or my device. On Eike's device, no sensor data appears at all. My device: SAMSUNG Galaxy Note 4 (SM-N910F), CM 12.1-20160711-NIGHTLY (Android 5.1.1) Eike's device: Sony XPERIA M4 Aqua (E2303), Sony-Android 5.0 It is also unclear how to get more or less calibrated values for the alpha oreintation value. What we really need is the compass orientation the device is pointed at, be it when it is flat or held vertically. We need to find out which compass direction the camera is facing. ## Note for (Hacktoberfest) contributors Veripeditus uses Angular.JS. Maybe this is not a good idea at all. However, you can find a description on how we handle device data, etc. in commit 4c39f75bbae889b49a8575314384cfc911a42467. It is about loading game data, but basically, getting device information works the same way. Right now, Angular.JS only processes broadcasts from the DeviceService once per second, but that is another issue. What we do need is a way to get the _real_ compass bearing from the alpha, beta and gamma values received in www/js/control/cam.js. Understanding the code base right now might be a bit difficult, but we will get you started on it and support you with all means. Just raise your voice if you want to help us ☺!
nik commented 2016-09-28 23:29:56 +02:00 (Migrated from edugit.org)

The speed issue is Angular's event system.

The speed issue is Angular's event system.
nik commented 2016-11-16 16:33:28 +01:00 (Migrated from edugit.org)

Closing because this is more or less contained in #15.

Closing because this is more or less contained in #15.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nik/veripeditus-server#19
No description provided.