-
Notifications
You must be signed in to change notification settings - Fork 170
Imu plugin #2043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
SeptimiuVana
wants to merge
21
commits into
main
Choose a base branch
from
imu_plugin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Imu plugin #2043
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
991f21c
plugins: add minimum code for imu
SeptimiuVana 8797ac3
plugins/imu: add renderer files
SeptimiuVana 1e03c5f
plugins/imu: add 3d render class and implement basic plugin interface
SeptimiuVana 20264dd
imu: add plane and rotation to cube
SeptimiuVana 67db6a8
imu: add new class for bubble level
SeptimiuVana 11d4f3f
imu: add basic shapes to 2d render
SeptimiuVana 11b28c0
imu: add bubblelevelrernder basic implementation
SeptimiuVana 3ac2513
imu: change cube/plane color from settings
SeptimiuVana 02c00bc
imu: update button style
SeptimiuVana c0a0f67
imu: read data from device
SeptimiuVana b344027
imu: display values in text box
SeptimiuVana 62e51df
imu: add measurements panel
SeptimiuVana 7980033
plugins: use linear accel to compute position
SeptimiuVana d8a54a3
imu: cleanup code
SeptimiuVana e5d3241
imu: add icon
SeptimiuVana 28797d4
imu: remove export.h file
SeptimiuVana e6aaa7a
imu: format code
SeptimiuVana 57595a9
imu: add licensing headers
SeptimiuVana eeaf76c
imu: hide resetView button if 2d window enabled
SeptimiuVana 83ae5bb
imu: add xml from emu
SeptimiuVana 69c080d
imu: add multiple view options to bubble level renderer
SeptimiuVana File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include/imuanalyzer/scopy-imuanalyzer_export.h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# | ||
# Copyright (c) 2025 Analog Devices Inc. | ||
# | ||
# This file is part of Scopy | ||
# (see https://www.github.com/analogdevicesinc/scopy). | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation, either version 3 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
# | ||
|
||
cmake_minimum_required(VERSION 3.9) | ||
|
||
set(SCOPY_MODULE imuanalyzer) | ||
|
||
message(STATUS "building plugin: " ${SCOPY_MODULE}) | ||
|
||
project(scopy-${SCOPY_MODULE} VERSION 0.1 LANGUAGES CXX) | ||
|
||
include(GenerateExportHeader) | ||
|
||
# TODO : split stylesheet / resources and add here TODO : export header files correctly | ||
|
||
set(CMAKE_CXX_STANDARD 17) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
|
||
set(CMAKE_AUTOUIC_SEARCH_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/ui) | ||
set(CMAKE_AUTOUIC ON) | ||
set(CMAKE_AUTOMOC ON) | ||
set(CMAKE_AUTORCC ON) | ||
|
||
set(CMAKE_INCLUDE_CURRENT_DIR ON) | ||
|
||
set(CMAKE_CXX_VISIBILITY_PRESET hidden) | ||
set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE) | ||
|
||
set(SCOPY_QT_COMPONENTS Core Widgets) | ||
|
||
file(GLOB SRC_LIST src/*.cpp src/*.cc) | ||
file(GLOB HEADER_LIST include/${SCOPY_MODULE}/*.h include/${SCOPY_MODULE}/*.hpp) | ||
file(GLOB UI_LIST ui/*.ui) | ||
|
||
set(ENABLE_TESTING ON) | ||
if(ENABLE_TESTING) | ||
add_subdirectory(test) | ||
endif() | ||
|
||
set(PROJECT_SOURCES ${SRC_LIST} ${HEADER_LIST} ${UI_LIST}) | ||
|
||
find_package( | ||
Qt${QT_VERSION_MAJOR} | ||
COMPONENTS ${SCOPY_QT_COMPONENTS} | ||
REQUIRED | ||
Core | ||
Gui | ||
Widgets | ||
3DCore | ||
3DExtras | ||
3DRender | ||
3DInput | ||
) | ||
|
||
add_library( | ||
${PROJECT_NAME} SHARED | ||
${PROJECT_SOURCES} | ||
include/imuanalyzer/imuanalyzerinterface.hpp | ||
include/imuanalyzer/scenerenderer.hpp | ||
include/imuanalyzer/bubblelevelrenderer.hpp | ||
include/imuanalyzer/imuanalyzerutils.hpp | ||
include/imuanalyzer/imuanalyzersettings.hpp | ||
src/datavisualizer.cpp | ||
include/imuanalyzer/datavisualizer.hpp | ||
# ${PROJECT_RESOURCES} | ||
) | ||
|
||
generate_export_header( | ||
${PROJECT_NAME} EXPORT_FILE_NAME ${CMAKE_CURRENT_SOURCE_DIR}/include/${SCOPY_MODULE}/${PROJECT_NAME}_export.h | ||
) | ||
|
||
target_include_directories(${PROJECT_NAME} INTERFACE ${CMAKE_CURRENT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/include/${SCOPY_MODULE}) | ||
|
||
target_include_directories(${PROJECT_NAME} PUBLIC scopy-pluginbase scopy-gui) | ||
target_include_directories( | ||
${PROJECT_NAME} | ||
PRIVATE ${IIO_INCLUDE_DIRS} | ||
scopy-gui | ||
scopy-iio-widgets | ||
scopy-iioutil | ||
${OPENGL_INCLUDE_DIRS} | ||
${GLUT_INCLUDE_DIRS} | ||
) | ||
|
||
foreach(comp ${SCOPY_QT_COMPONENTS}) | ||
set(SCOPY_QT_LIBRARIES ${SCOPY_QT_LIBRARIES} Qt${QT_VERSION_MAJOR}::${comp}) | ||
endforeach() | ||
|
||
target_link_libraries( | ||
${PROJECT_NAME} | ||
PUBLIC Qt::Widgets | ||
Qt::Core | ||
scopy-pluginbase | ||
scopy-gui | ||
scopy-iioutil | ||
scopy-iio-widgets | ||
Qt5::Core | ||
Qt5::Gui | ||
Qt5::Widgets | ||
Qt5::3DCore | ||
Qt5::3DExtras | ||
Qt5::3DRender | ||
Qt5::3DInput | ||
) | ||
|
||
set(PLUGIN_NAME ${PROJECT_NAME} PARENT_SCOPE) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comented code