-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔀 Merge branch 'ladislas/feature/ahrs-fusion' into develop
- Loading branch information
Showing
18 changed files
with
1,568 additions
and
24 deletions.
There are no files selected for viewing
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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,22 @@ | ||
# Leka - LekaOS | ||
# Copyright 2022 APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_mbed_executable(spike_lk_sensors_imu_lsm6dsox) | ||
|
||
target_include_directories(spike_lk_sensors_imu_lsm6dsox | ||
PRIVATE | ||
. | ||
) | ||
|
||
target_sources(spike_lk_sensors_imu_lsm6dsox | ||
PRIVATE | ||
main.cpp | ||
) | ||
|
||
target_link_libraries(spike_lk_sensors_imu_lsm6dsox | ||
CoreIMU | ||
CoreI2C | ||
) | ||
|
||
target_link_custom_leka_targets(spike_lk_sensors_imu_lsm6dsox) |
File renamed without changes.
25 changes: 25 additions & 0 deletions
25
spikes/lk_sensors_imu_lsm6dsox_fusion_calibration/CMakeLists.txt
This file contains 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,25 @@ | ||
# Leka - LekaOS | ||
# Copyright 2023 APF France handicap | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
add_mbed_executable(spike_lk_sensors_imu_lsm6dsox_fusion_calibration) | ||
|
||
add_subdirectory(fusion) | ||
|
||
target_include_directories(spike_lk_sensors_imu_lsm6dsox_fusion_calibration | ||
PRIVATE | ||
. | ||
) | ||
|
||
target_sources(spike_lk_sensors_imu_lsm6dsox_fusion_calibration | ||
PRIVATE | ||
main.cpp | ||
) | ||
|
||
target_link_libraries(spike_lk_sensors_imu_lsm6dsox_fusion_calibration | ||
CoreIMU | ||
CoreI2C | ||
Fusion | ||
) | ||
|
||
target_link_custom_leka_targets(spike_lk_sensors_imu_lsm6dsox_fusion_calibration) |
11 changes: 11 additions & 0 deletions
11
spikes/lk_sensors_imu_lsm6dsox_fusion_calibration/fusion/CMakeLists.txt
This file contains 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,11 @@ | ||
# ? Note the following code has been heavily inspired from: | ||
# ? https://github.com/xioTechnologies/Fusion/blob/main/Examples/Advanced | ||
# ? For more information, see https://github.com/xioTechnologies/Fusion | ||
|
||
file(GLOB_RECURSE files "*.c") | ||
|
||
add_library(Fusion ${files}) | ||
|
||
if(UNIX AND NOT APPLE) | ||
target_link_libraries(Fusion m) # link math library for Linux | ||
endif() |
31 changes: 31 additions & 0 deletions
31
spikes/lk_sensors_imu_lsm6dsox_fusion_calibration/fusion/Fusion.h
This file contains 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,31 @@ | ||
/** | ||
* @file Fusion.h | ||
* @author Seb Madgwick | ||
* @brief Main header file for the Fusion library. This is the only file that | ||
* needs to be included when using the library. | ||
*/ | ||
|
||
#ifndef FUSION_H | ||
#define FUSION_H | ||
|
||
//------------------------------------------------------------------------------ | ||
// Includes | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "FusionAhrs.h" | ||
#include "FusionAxes.h" | ||
#include "FusionCalibration.h" | ||
#include "FusionCompass.h" | ||
#include "FusionMath.h" | ||
#include "FusionOffset.h" | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif | ||
//------------------------------------------------------------------------------ | ||
// End of file |
Oops, something went wrong.