-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: rbudai <[email protected]>
- Loading branch information
Showing
12 changed files
with
242 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# Ignore all txtuser files | ||
*.txt.user | ||
*.cpp.orig | ||
.vscode |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/imu_ros2_node: | ||
ros__parameters: | ||
accel_calibbias_x: 0 | ||
accel_calibscale_x: 0 | ||
accel_calibbias_y: 0 | ||
accel_calibscale_y: 0 | ||
accel_calibbias_z: 0 | ||
accel_calibscale_z: 0 | ||
anglvel_calibbias_x: 0 | ||
anglvel_calibscale_x: 0 | ||
anglvel_calibbias_y: 0 | ||
anglvel_calibscale_y: 0 | ||
anglvel_calibbias_z: 0 | ||
anglvel_calibscale_z: 0 | ||
filter_low_pass_3db_frequency: 100 | ||
point_of_percussion_alignment: 1 | ||
bias_correction_time_base_control: 10 | ||
x_axis_gyroscope_bias_correction_enable: 0 | ||
y_axis_gyroscope_bias_correction_enable: 0 | ||
z_axis_gyroscope_bias_correction_enable: 0 | ||
x_axis_accelerometer_bias_correction_enable: 1 | ||
y_axis_accelerometer_bias_correction_enable: 1 | ||
z_axis_accelerometer_bias_correction_enable: 1 | ||
sampling_frequency: 4000.0 | ||
command_to_execute: no_command | ||
measured_data_topic_selection: 3 | ||
iio_context_string: ip:192.168.0.1 |
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,91 @@ | ||
#ifndef ADIS1655X_DATA_ACCESS_H | ||
#define ADIS1655X_DATA_ACCESS_H | ||
|
||
// has delta channels | ||
#define ADIS_HAS_DELTA_BURST | ||
|
||
// has calibration scale channel | ||
#define ADIS_HAS_CALIB_SCALE | ||
|
||
#define ADIS_FLS_MEM_ENDURANCE 100000 | ||
#define ADIS_MAX_SAMP_FREQ 4250.0 | ||
|
||
// value to add to reg addr per page | ||
#define ADIS_PAGE_ID_VAL 0x80 | ||
|
||
// global commands | ||
#define ADIS_GLOB_CMD_PAGE_ID 0x00 | ||
#define ADIS_GLOB_CMD_ADDR_WITHOUT_PAGE 0x50 | ||
#define ADIS_GLOB_CMD_ADDR \ | ||
(ADIS_PAGE_ID_VAL * ADIS_PT_OF_PERC_PAGE_ID + ADIS_GLOB_CMD_ADDR_WITHOUT_PAGE) | ||
|
||
#define ADIS_SENSOR_SELF_TEST_POS 1 | ||
#define ADIS_FLASH_MEMORY_UPDATE_POS 3 | ||
#define ADIS_FACTORY_CALIBRATION_RESTORE_POS 2 | ||
#define ADIS_SOFTWARE_RESET_CMD_POS 5 | ||
|
||
#define ADIS_SENSOR_SELF_TEST (1 << ADIS_SENSOR_SELF_TEST_POS) | ||
#define ADIS_FLASH_MEMORY_UPDATE (1 << ADIS_FLASH_MEMORY_UPDATE_POS) | ||
#define ADIS_FACTORY_CALIBRATION_RESTORE (1 << ADIS_FACTORY_CALIBRATION_RESTORE_POS) | ||
#define ADIS_SOFTWARE_RESET_CMD (1 << ADIS_SOFTWARE_RESET_CMD_POS) | ||
|
||
// status and error flag indication | ||
#define ADIS_DIAG_STAT_PAGE_ID 0x00 | ||
#define ADIS_DIAG_STAT_ADDR_WITHOUT_PAGE 0x0E | ||
#define ADIS_DIAG_STAT_ADDR \ | ||
(ADIS_PAGE_ID_VAL * ADIS_DIAG_STAT_PAGE_ID + ADIS_DIAG_STAT_ADDR_WITHOUT_PAGE) | ||
|
||
#define ADIS_MEM_FAIL_POS 0 | ||
#define ADIS_CRC_ERROR_POS 1 | ||
#define ADIS_FLS_MEM_UPDATE_FAIL_POS 2 | ||
#define ADIS_SNSR_FAIL_POS 4 | ||
#define ADIS_SPI_COMM_ERR_POS 6 | ||
#define ADIS_DATA_PATH_OVERRUN_POS 7 | ||
#define ADIS_CLK_ERR_POS 10 | ||
#define ADIS_WDG_TIMER_FLAG_POS 15 | ||
|
||
#define ADIS_MEM_FAIL (1 << ADIS_MEM_FAIL_POS) | ||
#define ADIS_CRC_ERROR (1 << ADIS_CRC_ERROR_POS) | ||
#define ADIS_FLS_MEM_UPDATE_FAIL (1 << ADIS_FLS_MEM_UPDATE_FAIL_POS) | ||
#define ADIS_SNSR_FAIL (1 << ADIS_SNSR_FAIL_POS) | ||
#define ADIS_SPI_COMM_ERR (1 << ADIS_SPI_COMM_ERR_POS) | ||
#define ADIS_DATA_PATH_OVERRUN (1 << ADIS_DATA_PATH_OVERRUN_POS) | ||
#define ADIS_CLK_ERR (1 << ADIS_CLK_ERR_POS) | ||
#define ADIS_WDG_TIMER_FLAG (1 << ADIS_WDG_TIMER_FLAG_POS) | ||
|
||
// self test error flags | ||
#define ADIS_DIAG_STS_PAGE_ID 0x00 | ||
#define ADIS_DIAG_STS_REG_WITHOUT_PAGE 0x0F | ||
#define ADIS_DIAG_STS_REG \ | ||
(ADIS_PAGE_ID_VAL * ADIS_DIAG_STS_PAGE_ID + ADIS_DIAG_STS_REG_WITHOUT_PAGE) | ||
|
||
#define ADIS_GYRO_ACCEL_FAIL_REG ADIS_DIAG_STS_REG | ||
#define ADIS_GYRO_X_FAIL_POS 0 | ||
#define ADIS_GYRO_Y_FAIL_POS 2 | ||
#define ADIS_GYRO_Z_FAIL_POS 4 | ||
#define ADIS_ACCEL_X_FAIL_POS 6 | ||
#define ADIS_ACCEL_Y_FAIL_POS 8 | ||
#define ADIS_ACCEL_Z_FAIL_POS 10 | ||
|
||
#define ADIS_GYRO_X_FAIL (3 << ADIS_GYRO_X_FAIL_POS) | ||
#define ADIS_GYRO_Y_FAIL (3 << ADIS_GYRO_Y_FAIL_POS) | ||
#define ADIS_GYRO_Z_FAIL (3 << ADIS_GYRO_Z_FAIL_POS) | ||
#define ADIS_ACCEL_X_FAIL (3 << ADIS_ACCEL_X_FAIL_POS) | ||
#define ADIS_ACCEL_Y_FAIL (3 << ADIS_ACCEL_Y_FAIL_POS) | ||
#define ADIS_ACCEL_Z_FAIL (3 << ADIS_ACCEL_Z_FAIL_POS) | ||
|
||
// measurement range identifier | ||
#define ADIS_RANG_MDL_PAGE_ID 0x00 | ||
#define ADIS_RANG_MDL_ADDR_WITHOUT_PAGE 0x10 | ||
#define ADIS_RANG_MDL_ADDR \ | ||
(ADIS_PAGE_ID_VAL * ADIS_RANG_MDL_PAGE_ID + ADIS_RANG_MDL_ADDR_WITHOUT_PAGE) | ||
|
||
// point of percussion | ||
#define ADIS_PT_OF_PERC_PAGE_ID 0x00 | ||
#define ADIS_PT_OF_PERC_REG_ADDR_WITHOUT_PAGE 0x52 | ||
#define ADIS_PT_OF_PERC_REG_ADDR \ | ||
(ADIS_PAGE_ID_VAL * ADIS_PT_OF_PERC_PAGE_ID + ADIS_PT_OF_PERC_REG_ADDR_WITHOUT_PAGE) | ||
#define ADIS_PT_OF_PERC_ALGNMNT_POS 4 | ||
#define ADIS_PT_OF_PERC_ALGNMNT (1 << ADIS_PT_OF_PERC_ALGNMNT_POS) | ||
|
||
#endif |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
################################################################################ | ||
# @file ImuDiagData.msg | ||
# @brief Definition of ImuDiagData message | ||
# @author Robert Budai ([email protected]) | ||
################################################################################ | ||
# Copyright 2023(c) Analog Devices, Inc. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
################################################################################ | ||
|
||
# message header | ||
std_msgs/Header header | ||
|
||
# if true, one of the datapaths experienced an overrun condition | ||
bool diag_data_path_overrun | ||
|
||
# if true, the most recent imu memory flash failed | ||
bool diag_flash_memory_update_error | ||
|
||
# if true, sensor automatically reset themselves to clear an issue | ||
bool diag_automatic_reset | ||
|
||
# if true, while operating in scaled sync mode, indicates the sampling time is not scaling correctly | ||
bool diag_clock_error | ||
|
||
# if true, the most recent imu memory flash failed | ||
bool diag_flash_memory_test_error | ||
|
||
# if true, indicates the failure of the inertial sensor | ||
bool diag_sensor_self_test_error | ||
|
||
#if true, indicates communication error on SPI interface | ||
bool diag_spi_communication_error | ||
|
||
# if true, indicates failure on CRC calculation | ||
bool diag_crc_error | ||
|
||
# if true, a failure occurred on x axis gyroscope | ||
bool diag_x_axis_gyroscope_failure | ||
|
||
# if true, a failure occurred on y axis gyroscope | ||
bool diag_y_axis_gyroscope_failure | ||
|
||
# if true, a failure occurred on z axis gyroscope | ||
bool diag_z_axis_gyroscope_failure | ||
|
||
# if true, a failure occurred on x axis accelerometer | ||
bool diag_x_axis_accelerometer_failure | ||
|
||
# if true, a failure occurred on y axis accelerometer | ||
bool diag_y_axis_accelerometer_failure | ||
|
||
# if true, a failure occurred on z axis accelerometer | ||
bool diag_z_axis_accelerometer_failure | ||
|
||
# if true, the imu flash memory was written more times than the data-sheet specified endurance | ||
bool diag_flash_memory_write_count_exceeded_error | ||
|
||
# the value of the imu flash writes | ||
uint32 flash_counter |
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
Oops, something went wrong.