From 0711a0d3bb5e1eeb7f37c76a8bc5fe4026d6269d Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 25 Oct 2024 16:36:16 +0200 Subject: [PATCH] Using uppercase enum class to make ubuntu happy --- src/devices/openxrheadset/FilteredPosePublisher.cpp | 2 +- src/devices/openxrheadset/OpenXrInterface.cpp | 2 +- src/devices/openxrheadset/OpenXrInterface.h | 4 ++-- src/devices/openxrheadset/impl/OpenXrInterfaceImpl.h | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/devices/openxrheadset/FilteredPosePublisher.cpp b/src/devices/openxrheadset/FilteredPosePublisher.cpp index 116021f..3e55efc 100644 --- a/src/devices/openxrheadset/FilteredPosePublisher.cpp +++ b/src/devices/openxrheadset/FilteredPosePublisher.cpp @@ -148,7 +148,7 @@ void FilteredPosePublisher::updateInputPose(const OpenXrInterface::NamedPoseVelo } switch (input.filterType) { - case PoseFilterType::JumpFilter: + case PoseFilterType::JUMP_FILTER: PosePublisher::updateInputPose(filterJumps(input)); break; default: diff --git a/src/devices/openxrheadset/OpenXrInterface.cpp b/src/devices/openxrheadset/OpenXrInterface.cpp index a209a06..21b6dca 100644 --- a/src/devices/openxrheadset/OpenXrInterface.cpp +++ b/src/devices/openxrheadset/OpenXrInterface.cpp @@ -926,7 +926,7 @@ bool OpenXrInterface::prepareXrActions() gazeInputs.poses = { - {"/input/gaze_ext/pose", "pose", PoseFilterType::None} + {"/input/gaze_ext/pose", "pose", PoseFilterType::NONE} }; TopLevelPathDeclaration gaze; diff --git a/src/devices/openxrheadset/OpenXrInterface.h b/src/devices/openxrheadset/OpenXrInterface.h index dd9a4bb..d29d321 100644 --- a/src/devices/openxrheadset/OpenXrInterface.h +++ b/src/devices/openxrheadset/OpenXrInterface.h @@ -63,8 +63,8 @@ class IOpenXrQuadLayer enum class PoseFilterType { - None, - JumpFilter, + NONE, + JUMP_FILTER }; struct OpenXrInterfaceSettings diff --git a/src/devices/openxrheadset/impl/OpenXrInterfaceImpl.h b/src/devices/openxrheadset/impl/OpenXrInterfaceImpl.h index a18153a..63ebcdb 100644 --- a/src/devices/openxrheadset/impl/OpenXrInterfaceImpl.h +++ b/src/devices/openxrheadset/impl/OpenXrInterfaceImpl.h @@ -116,7 +116,7 @@ struct ActionDeclaration struct PoseActionDeclaration : public ActionDeclaration { - PoseFilterType filterType{ PoseFilterType::JumpFilter }; + PoseFilterType filterType{ PoseFilterType::JUMP_FILTER }; }; struct InputActionsDeclaration