|
esp32_BNO08x 1.2
C++ BNO08x IMU driver component for esp-idf.
|
BNO08x unit test helper class. More...
#include <BNO08xTestHelper.hpp>

Classes | |
| struct | imu_report_data_t |
| IMU configuration settings passed into constructor. More... | |
Public Types | |
| typedef struct BNO08xTestHelper::imu_report_data_t | imu_report_data_t |
| IMU configuration settings passed into constructor. | |
Static Public Member Functions | |
| static void | print_test_start_banner (const char *TEST_TAG) |
| Prints test begin banner. | |
| static void | print_test_end_banner (const char *TEST_TAG) |
| Prints end begin banner. | |
| static void | print_test_msg (const char *TEST_TAG, const char *msg) |
| Prints a message during a test. | |
| static void | set_test_imu_cfg (bno08x_config_t cfg) |
| Set test imu configuration used with create_test_imu() | |
| static void | create_test_imu () |
| Calls BNO08x constructor and creates new test IMU on heap. | |
| static void | destroy_test_imu () |
| Deletes test IMU calling deconstructor and releases heap allocated memory. | |
| static BNO08x * | get_test_imu () |
| Deletes test IMU calling deconstructor and releases heap allocated memory. | |
| static esp_err_t | call_init_config_args () |
| Used to call private BNO08x::init_config_args() member for tests. | |
| static esp_err_t | call_init_gpio () |
| Used to call private BNO08x::init_gpio() member for tests. | |
| static esp_err_t | call_init_hint_isr () |
| Used to call private BNO08x::init_hint_isr() member for tests. | |
| static esp_err_t | call_init_spi () |
| Used to call private BNO08x::init_spi() member for tests. | |
| static esp_err_t | call_launch_tasks () |
| Used to call private BNO08x::launch_tasks() member for tests. | |
| static bool | rotation_vector_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | gyro_integrated_rotation_vector_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | uncalibrated_gyro_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | calibrated_gyro_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | accelerometer_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | linear_accelerometer_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | gravity_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | magnetometer_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | step_counter_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | stability_classifier_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static bool | activity_classifier_data_is_new (imu_report_data_t *report_data, imu_report_data_t *default_report_data) |
| Checks if report_data matches the default states stored within prev_report_data data for respective report. | |
| static void | update_report_data (imu_report_data_t *report_data) |
| Updates report data with calls relevant test_imu methods. | |
| static void | reset_all_imu_data_to_test_defaults () |
| Resets internal test imu data with test defaults. | |
| static const char * | BNO08xAccuracy_to_str (BNO08xAccuracy accuracy) |
| Converts BNO08xAccuracy enum class object to string. | |
| static const char * | BNO08xStability_to_str (BNO08xStability stability) |
| Converts BNO08xStability enum class object to string. | |
| static const char * | BNO08xActivity_to_str (BNO08xActivity activity) |
| Converts BNO08xActivity enum class object to string. | |
Static Private Attributes | |
| static BNO08x * | test_imu = nullptr |
| static bno08x_config_t | imu_cfg |
| static const constexpr char * | TAG = "BNO08xTestHelper" |
BNO08x unit test helper class.
| typedef struct BNO08xTestHelper::imu_report_data_t BNO08xTestHelper::imu_report_data_t |
IMU configuration settings passed into constructor.
|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Converts BNO08xAccuracy enum class object to string.
| report_data | BNO08xAccuracy object to convert to string. |

|
inlinestatic |
Converts BNO08xActivity enum class object to string.
| activity | BNO08xActivity object to convert to string. |

|
inlinestatic |
Converts BNO08xStability enum class object to string.
| stability | BNO08xStability object to convert to string. |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Used to call private BNO08x::init_config_args() member for tests.


|
inlinestatic |
Used to call private BNO08x::init_gpio() member for tests.


|
inlinestatic |
Used to call private BNO08x::init_hint_isr() member for tests.


|
inlinestatic |
Used to call private BNO08x::init_spi() member for tests.


|
inlinestatic |
Used to call private BNO08x::launch_tasks() member for tests.


|
inlinestatic |
Calls BNO08x constructor and creates new test IMU on heap.


|
inlinestatic |
Deletes test IMU calling deconstructor and releases heap allocated memory.

|
inlinestatic |
Deletes test IMU calling deconstructor and releases heap allocated memory.

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Prints end begin banner.
| TEST_TAG | String containing test name. |

|
inlinestatic |
Prints a message during a test.
| TEST_TAG | String containing test name. |
| msg | String containing message to print. |

|
inlinestatic |
Prints test begin banner.
| TEST_TAG | String containing test name. |

|
inlinestatic |
Resets internal test imu data with test defaults.

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Set test imu configuration used with create_test_imu()
| cfg | String containing test name. |
|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Checks if report_data matches the default states stored within prev_report_data data for respective report.
| report_data | Current report data. |
| default_report_data | Default report data to compare (should always contain default values) |

|
inlinestatic |
Updates report data with calls relevant test_imu methods.
| report_data | Pointer to imu_report_data_t struct to save report data. |


|
inlinestaticprivate |
|
staticconstexprprivate |
|
inlinestaticprivate |