From b95729337338e62c08ff8ba052ce2dc00bb5f8c1 Mon Sep 17 00:00:00 2001 From: iCub Virtualizer Date: Mon, 4 Oct 2021 17:25:53 +0200 Subject: [PATCH 1/2] Fix of axis readings --- src/devices/openxrheadset/OpenXrHeadset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/openxrheadset/OpenXrHeadset.cpp b/src/devices/openxrheadset/OpenXrHeadset.cpp index dd9e0e9..8522b26 100644 --- a/src/devices/openxrheadset/OpenXrHeadset.cpp +++ b/src/devices/openxrheadset/OpenXrHeadset.cpp @@ -642,7 +642,7 @@ bool yarp::dev::OpenXrHeadset::getAxis(unsigned int axis_id, double &value) { unsigned int thumbstickId = inputId / 2; - value = thumbsticks[thumbstickId][inputId - thumbstickId]; //Each thumbstick counts as two axes + value = thumbsticks[thumbstickId][inputId % 2]; //Each thumbstick counts as two axes } else { From 79b13a07fa420a697594003be0faee04cdd54c2c Mon Sep 17 00:00:00 2001 From: iCub Virtualizer Date: Mon, 18 Oct 2021 10:13:01 +0200 Subject: [PATCH 2/2] CHanged the visibility of the world frame in the FrameViz --- src/utils/OpenXrFrameViz/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/OpenXrFrameViz/main.cpp b/src/utils/OpenXrFrameViz/main.cpp index 4423ac6..e7836bc 100644 --- a/src/utils/OpenXrFrameViz/main.cpp +++ b/src/utils/OpenXrFrameViz/main.cpp @@ -78,6 +78,7 @@ int main(int /*argc*/, char** /*argv*/) bool ok = visualizer.init(); visualizer.camera().animator()->enableMouseControl(); + visualizer.enviroment().setElementVisibility("world_frame", false); if( !ok ) {