diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-11-12 20:33:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-12 20:33:41 +0100 |
commit | b83c14db891cb2563930989c35d287d802a23f9d (patch) | |
tree | 7ddbf23ff0c892261a7587127df8b52702af3649 /modules | |
parent | 31117588fd8558fa14c8625fe018ffcb16e4c27f (diff) | |
parent | 6205eb40e78c5b54fbb67cce383a1983670bb0b0 (diff) |
Merge pull request #12826 from BastiaanOlij/align_sensors_android
Align sensors and implement gravity sensor for Android
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mobile_vr/mobile_interface.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/modules/mobile_vr/mobile_interface.cpp b/modules/mobile_vr/mobile_interface.cpp index 93d5c22ef8..dccdcd3070 100644 --- a/modules/mobile_vr/mobile_interface.cpp +++ b/modules/mobile_vr/mobile_interface.cpp @@ -156,17 +156,6 @@ void MobileVRInterface::set_position_from_sensors() { has_gyro = true; }; -#ifdef ANDROID_ENABLED - ///@TODO needs testing, i don't have a gyro, potentially can be removed depending on what comes out of issue #8101 - // On Android x and z axis seem inverted - gyro.x = -gyro.x; - gyro.z = -gyro.z; - grav.x = -grav.x; - grav.z = -grav.z; - magneto.x = -magneto.x; - magneto.z = -magneto.z; -#endif - if (has_gyro) { // start with applying our gyro (do NOT smooth our gyro!) Basis rotate; |