-
-
3#include <driver/gpio.h>
-
4#include <driver/spi_common.h>
-
5#include <driver/spi_master.h>
-
-
7#include <esp_rom_gpio.h>
-
-
9#include <freertos/FreeRTOS.h>
-
10#include <freertos/task.h>
-
11#include <freertos/event_groups.h>
-
12#include <freertos/queue.h>
-
13#include <rom/ets_sys.h>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
60 ,
io_mosi((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_DI)
-
61 ,
io_miso((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_SDA)
-
62 ,
io_sclk((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_SCL)
-
63 ,
io_cs((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_CS)
-
64 ,
io_int((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_HINT)
-
65 ,
io_rst((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_RST)
-
66 ,
io_wake((gpio_num_t)CONFIG_ESP32_BNO08X_GPIO_WAKE)
-
67 ,
sclk_speed((uint32_t)CONFIG_ESP32_BNO08X_SCL_SPEED_HZ)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
100 float q_to_float(int16_t fixed_point_value, uint8_t q_point);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
127 void enable_activity_classifier(uint32_t time_between_reports, uint32_t activities_to_enable, uint8_t (&activity_confidence_vals)[9]);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
160 void get_magf(
float& x,
float& y,
float& z, uint8_t& accuracy);
-
-
-
-
-
-
166 void get_gravity(
float& x,
float& y,
float& z, uint8_t& accuracy);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
180 void get_quat(
float& i,
float& j,
float& k,
float& real,
float& rad_accuracy, uint8_t& accuracy);
-
-
-
-
-
-
-
-
188 void get_accel(
float& x,
float& y,
float& z, uint8_t& accuracy);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
218 void get_uncalibrated_gyro(
float& x,
float& y,
float& z,
float& bx,
float& by,
float& bz, uint8_t& accuracy);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
238 int16_t
get_Q1(uint16_t record_ID);
-
239 int16_t
get_Q2(uint16_t record_ID);
-
240 int16_t
get_Q3(uint16_t record_ID);
-
-
-
243 uint32_t
FRS_read_word(uint16_t record_ID, uint8_t word_number);
-
244 bool FRS_read_request(uint16_t record_ID, uint16_t read_offset, uint16_t block_size);
-
245 bool FRS_read_data(uint16_t record_ID, uint8_t start_location, uint8_t words_to_read);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
299 void enable_report(uint8_t report_ID, uint32_t time_between_reports,
const EventBits_t report_evt_grp_bit);
-
300 void disable_report(uint8_t report_ID,
const EventBits_t report_evt_grp_bit);
-
301 void queue_packet(uint8_t channel_number, uint8_t data_length, uint8_t* commands);
-
-
-
304 void queue_feature_command(uint8_t report_ID, uint32_t time_between_reports, uint32_t specific_config);
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
485 static const constexpr char*
TAG =
"BNO08x";
-
-
-
struct bno08x_config_t bno08x_config_t
IMU configuration settings passed into constructor.
-
channels_t
SHTP protocol channels.
Definition BNO08x.hpp:25
-
@ CHANNEL_COMMAND
Definition BNO08x.hpp:26
-
@ CHANNEL_REPORTS
Definition BNO08x.hpp:29
-
@ CHANNEL_CONTROL
Definition BNO08x.hpp:28
-
@ CHANNEL_EXECUTABLE
Definition BNO08x.hpp:27
-
@ CHANNEL_WAKE_REPORTS
Definition BNO08x.hpp:30
-
@ CHANNEL_GYRO
Definition BNO08x.hpp:31
-
IMUAccuracy
Sensor accuracy returned during sensor calibration.
Definition BNO08x.hpp:36
-
-
-
-
-
void disable_report(uint8_t report_ID, const EventBits_t report_evt_grp_bit)
Disables a sensor report for a given ID by setting its time interval to 0.
Definition BNO08x.cpp:482
-
static const constexpr uint8_t SHTP_REPORT_PRODUCT_ID_RESPONSE
See SH2 Ref. Manual 6.3.2.
Definition BNO08x.hpp:454
-
void enable_gravity(uint32_t time_between_reports)
Sends command to enable gravity reading reports (See Ref. Manual 6.5.11)
Definition BNO08x.cpp:1275
-
uint16_t raw_quat_radian_accuracy
Definition BNO08x.hpp:347
-
static const constexpr uint8_t SENSOR_REPORT_ID_RAW_GYROSCOPE
See SH2 Ref. Manual 6.5.12.
Definition BNO08x.hpp:474
-
uint16_t raw_gyro_Z
Definition BNO08x.hpp:346
-
static const constexpr int16_t ACCELEROMETER_Q1
Acceleration Q point (See SH-2 Ref. Manual 6.5.9)
Definition BNO08x.hpp:271
-
void print_packet(bno08x_rx_packet_t *packet)
Prints the passed SHTP packet to serial console with ESP_LOG statement.
Definition BNO08x.cpp:2446
-
static const constexpr uint8_t SENSOR_REPORT_ID_MAGNETIC_FIELD
See SH2 Ref. Manual 6.5.16.
Definition BNO08x.hpp:462
-
void register_cb(std::function< void()> cb_fxn)
Registers a callback to execute when new data from a report is received.
Definition BNO08x.cpp:864
-
uint16_t uncalib_gyro_accuracy
Uncalibrated gyro reading (See SH-2 Ref. Manual 6.5.14)
Definition BNO08x.hpp:354
-
uint16_t raw_bias_Z
Definition BNO08x.hpp:353
-
static const constexpr uint16_t FRS_RECORD_ID_MAGNETIC_FIELD_CALIBRATED
Calibrated magnetometer record ID, to be passed in metadata functions like get_Q1()
Definition BNO08x.hpp:253
-
static const constexpr uint8_t COMMAND_TARE
Command and response to tare command (See Sh2 Ref. Manual 6.4.4)
Definition BNO08x.hpp:441
-
float get_accel_Z()
Get z axis acceleration (total acceleration of device, units in m/s^2).
Definition BNO08x.cpp:2000
-
float get_uncalibrated_gyro_Z()
Get uncalibrated gyro Z axis angular velocity measurement.
Definition BNO08x.cpp:2271
-
static void data_proc_task_trampoline(void *arg)
Static function used to launch data processing task.
Definition BNO08x.cpp:2819
-
static const constexpr int16_t ROTATION_VECTOR_Q1
Rotation vector Q point (See SH-2 Ref. Manual 6.5.18)
Definition BNO08x.hpp:269
-
static void spi_task_trampoline(void *arg)
Static function used to launch spi task.
Definition BNO08x.cpp:2769
-
int8_t get_stability_classifier()
Get the current stability classifier (Seee Ref. Manual 6.5.31)
Definition BNO08x.cpp:2389
-
static const constexpr EventBits_t EVT_GRP_RPT_GAME_ROTATION_VECTOR_BIT
When set, game rotation vector reports are active.
Definition BNO08x.hpp:401
-
float get_range(uint16_t record_ID)
Gets range from BNO08x FRS (flash record system).
Definition BNO08x.cpp:2557
-
float get_linear_accel_Y()
Get y axis linear acceleration (acceleration of device minus gravity, units in m/s^2)
Definition BNO08x.cpp:2048
-
float get_magf_X()
Get X component of magnetic field vector.
Definition BNO08x.cpp:1661
-
static const constexpr uint8_t TARE_PERSIST
See SH2 Ref. Manual 6.4.4.2.
Definition BNO08x.hpp:482
-
uint8_t tap_detector
Tap detector reading (See SH-2 Ref. Manual 6.5.27)
Definition BNO08x.hpp:357
-
uint8_t get_reset_reason()
Requests product ID, prints the returned info over serial, and returns the reason for the most resent...
Definition BNO08x.cpp:322
-
float get_quat_I()
Get I component of reported quaternion.
Definition BNO08x.cpp:1897
-
void enable_raw_magnetometer(uint32_t time_between_reports)
Sends command to enable raw magnetometer reports (See Ref. Manual 6.5.15)
Definition BNO08x.cpp:1388
-
int16_t get_Q3(uint16_t record_ID)
Gets Q3 point from BNO08x FRS (flash record system).
Definition BNO08x.cpp:2527
-
float get_gyro_calibrated_velocity_Z()
Get calibrated gyro z axis angular velocity measurement.
Definition BNO08x.cpp:2206
-
void disable_tap_detector()
Sends command to disable tap detector reports by setting report interval to 0.
Definition BNO08x.cpp:1508
-
void disable_raw_accelerometer()
Sends command to disable raw accelerometer reports by setting report interval to 0.
Definition BNO08x.cpp:1548
-
bool mode_sleep()
Puts BNO08x sensor into sleep/low power mode using executable channel.
Definition BNO08x.cpp:372
-
static const constexpr EventBits_t EVT_GRP_RPT_ACCELEROMETER_BIT
When set, accelerometer reports are active.
Definition BNO08x.hpp:408
-
float get_uncalibrated_gyro_Y()
Get uncalibrated gyro Y axis angular velocity measurement.
Definition BNO08x.cpp:2261
-
uint16_t raw_gyro_X
Definition BNO08x.hpp:346
-
static const constexpr EventBits_t EVT_GRP_RPT_ROTATION_VECTOR_BIT
When set, rotation vector reports are active.
Definition BNO08x.hpp:400
-
static const constexpr uint16_t RX_DATA_LENGTH
length buffer containing data received over spi
Definition BNO08x.hpp:384
-
uint8_t stability_classifier
Stability status reading (See SH-2 Ref. Manual 6.5.31)
Definition BNO08x.hpp:359
-
float get_pitch()
Get the reported rotation about y axis.
Definition BNO08x.cpp:1789
-
void get_uncalibrated_gyro(float &x, float &y, float &z, float &bx, float &by, float &bz, uint8_t &accuracy)
Get full rotational velocity without drift compensation (units in Rad/s). An estimate of drift is giv...
Definition BNO08x.cpp:2235
-
void calibrate_planar_accelerometer()
Sends command to calibrate planar accelerometer.
Definition BNO08x.cpp:632
-
static const constexpr uint8_t SHTP_REPORT_SET_FEATURE_COMMAND
See SH2 Ref. Manual 6.5.4.
Definition BNO08x.hpp:457
-
float get_resolution(uint16_t record_ID)
Gets resolution from BNO08x FRS (flash record system).
Definition BNO08x.cpp:2540
-
int16_t get_raw_accel_X()
Get raw accelerometer x axis reading from physical accelerometer MEMs sensor (See Ref....
Definition BNO08x.cpp:2078
-
static const constexpr uint8_t SHTP_REPORT_COMMAND_RESPONSE
See SH2 Ref. Manual 6.3.9.
Definition BNO08x.hpp:450
-
void disable_rotation_vector()
Sends command to disable rotation vector reports by setting report interval to 0.
Definition BNO08x.cpp:1398
-
static const constexpr uint8_t TARE_AXIS_ALL
Tare all axes (used with tare now command)
Definition BNO08x.hpp:258
-
static const constexpr uint8_t SENSOR_REPORT_ID_GYROSCOPE
See SH2 Ref. Manual 6.5.13.
Definition BNO08x.hpp:461
-
static const constexpr uint8_t TARE_GEOMAGNETIC_ROTATION_VECTOR
tare geomagnetic rotation vector
Definition BNO08x.hpp:264
-
uint8_t get_quat_accuracy()
Get accuracy of reported quaternion.
Definition BNO08x.cpp:1952
-
void enable_accelerometer(uint32_t time_between_reports)
Sends command to enable accelerometer reports (See Ref. Manual 6.5.9)
Definition BNO08x.cpp:1253
-
static const constexpr uint8_t TARE_NOW
See SH2 Ref. Manual 6.4.4.1.
Definition BNO08x.hpp:481
-
uint32_t FRS_read_word(uint16_t record_ID, uint8_t word_number)
Reads meta data word from BNO08x FRS (flash record system) given the record ID and word number....
Definition BNO08x.cpp:2578
-
float q_to_float(int16_t fixed_point_value, uint8_t q_point)
Converts a register value to a float using its associated Q point. (See https://en....
Definition BNO08x.cpp:1621
-
bool wait_for_rx_done()
Waits for data to be received over SPI, or HOST_INT_TIMEOUT_MS to elapse.
Definition BNO08x.cpp:144
-
float get_uncalibrated_gyro_X()
Get uncalibrated gyro x axis angular velocity measurement.
Definition BNO08x.cpp:2251
-
bool hard_reset()
Hard resets BNO08x sensor.
Definition BNO08x.cpp:250
-
uint16_t parse_product_id_report(bno08x_rx_packet_t *packet)
Parses product id report and prints device info.
Definition BNO08x.cpp:928
-
static const constexpr uint8_t SENSOR_REPORT_ID_STEP_COUNTER
See SH2 Ref. Manual 6.5.29.
Definition BNO08x.hpp:471
-
static const constexpr uint16_t MAX_METADATA_LENGTH
max length of metadata used in frs read operations
Definition BNO08x.hpp:385
-
void send_packet(bno08x_tx_packet_t *packet)
Sends a queued SHTP packet via SPI.
Definition BNO08x.cpp:529
-
int16_t get_raw_magf_Y()
Get raw magnetometer y axis reading from physical magnetometer sensor (See Ref. Manual 6....
Definition BNO08x.cpp:2148
-
static const constexpr char * TAG
Class tag used for serial print statements.
Definition BNO08x.hpp:485
-
int16_t get_raw_gyro_Z()
Get raw gyroscope z axis reading from physical gyroscope MEMs sensor (See Ref. Manual 6....
Definition BNO08x.cpp:2128
-
void spi_task()
Task responsible for SPI transactions. Executed when HINT in is asserted by BNO08x.
Definition BNO08x.cpp:2780
-
void enable_raw_accelerometer(uint32_t time_between_reports)
Sends command to enable raw accelerometer reports (See Ref. Manual 6.5.8)
Definition BNO08x.cpp:1366
-
static const constexpr uint8_t COMMAND_OSCILLATOR
Retrieve oscillator type command (See SH2 Ref. Manual 6.4)
Definition BNO08x.hpp:446
-
static const constexpr uint8_t COMMAND_INITIALIZE
Reinitialize sensor hub components See (SH2 Ref. Manual 6.4.5)
Definition BNO08x.hpp:442
-
uint8_t get_uncalibrated_gyro_accuracy()
Get uncalibrated gyro accuracy.
Definition BNO08x.cpp:2311
-
static const constexpr EventBits_t EVT_GRP_SPI_RX_DONE_BIT
When this bit is set it indicates a receive procedure has completed.
Definition BNO08x.hpp:391
-
uint16_t accel_accuracy
Raw acceleration readings (See SH-2 Ref. Manual 6.5.8)
Definition BNO08x.hpp:343
-
uint8_t get_linear_accel_accuracy()
Get accuracy of linear acceleration.
Definition BNO08x.cpp:2068
-
static const constexpr uint8_t SENSOR_REPORT_ID_ACCELEROMETER
See SH2 Ref. Manual 6.5.9.
Definition BNO08x.hpp:460
-
void print_header(bno08x_rx_packet_t *packet)
Prints the header of the passed SHTP packet to serial console with ESP_LOG statement.
Definition BNO08x.cpp:2419
-
void get_magf(float &x, float &y, float &z, uint8_t &accuracy)
Get the full magnetic field vector.
Definition BNO08x.cpp:1648
-
static const constexpr uint16_t FRS_RECORD_ID_GYROSCOPE_CALIBRATED
Calirated gyroscope record ID, to be passed in metadata functions like get_Q1()
Definition BNO08x.hpp:251
-
uint16_t accel_lin_accuracy
Raw linear acceleration (See SH-2 Ref. Manual 6.5.10)
Definition BNO08x.hpp:345
-
uint16_t quat_accuracy
Raw quaternion reading (See SH-2 Ref. Manual 6.5.44)
Definition BNO08x.hpp:348
-
bool data_available()
Checks if BNO08x has asserted interrupt and sent data.
Definition BNO08x.cpp:847
-
static const constexpr uint8_t SENSOR_REPORT_ID_ROTATION_VECTOR
See SH2 Ref. Manual 6.5.18.
Definition BNO08x.hpp:464
-
static const constexpr uint8_t COMMAND_ERRORS
Definition BNO08x.hpp:439
-
void get_gravity(float &x, float &y, float &z, uint8_t &accuracy)
Get full reported gravity vector, units in m/s^2.
Definition BNO08x.cpp:1709
-
struct BNO08x::bno08x_tx_packet_t bno08x_tx_packet_t
Holds data that is sent over spi.
-
static const constexpr EventBits_t EVT_GRP_RPT_GYRO_BIT
When set, gyro reports are active.
Definition BNO08x.hpp:411
-
void enable_magnetometer(uint32_t time_between_reports)
Sends command to enable magnetometer reports (See Ref. Manual 6.5.16)
Definition BNO08x.cpp:1308
-
uint16_t mems_raw_gyro_X
Definition BNO08x.hpp:365
-
static const constexpr EventBits_t EVT_GRP_RPT_RAW_ACCELEROMETER_BIT
When set, raw accelerometer reports are active.
Definition BNO08x.hpp:418
-
uint8_t get_accel_accuracy()
Get accuracy of linear acceleration.
Definition BNO08x.cpp:2010
-
bool FRS_read_data(uint16_t record_ID, uint8_t start_location, uint8_t words_to_read)
Read meta data from BNO08x FRS (flash record system) given the record ID. Contains Q points and other...
Definition BNO08x.cpp:2630
-
struct BNO08x::bno08x_rx_packet_t bno08x_rx_packet_t
Holds data that is received over spi.
-
BNO08x(bno08x_config_t imu_config=default_imu_config)
BNO08x imu constructor.
Definition BNO08x.cpp:15
-
void enable_report(uint8_t report_ID, uint32_t time_between_reports, const EventBits_t report_evt_grp_bit)
Enables a sensor report for a given ID.
Definition BNO08x.cpp:455
-
spi_device_interface_config_t imu_spi_config
SPI slave device settings.
Definition BNO08x.hpp:336
-
void disable_step_counter()
Sends command to disable step counter reports by setting report interval to 0.
Definition BNO08x.cpp:1518
-
int16_t get_Q1(uint16_t record_ID)
Gets Q1 point from BNO08x FRS (flash record system).
Definition BNO08x.cpp:2497
-
void tare_now(uint8_t axis_sel=TARE_AXIS_ALL, uint8_t rotation_vector_basis=TARE_ROTATION_VECTOR)
Sends command to tare an axis (See Ref. Manual 6.4.4.1)
Definition BNO08x.cpp:1581
-
uint8_t get_tap_detector()
Get if tap has occured.
Definition BNO08x.cpp:2367
-
uint8_t get_magf_accuracy()
Get accuracy of reported magnetic field vector.
Definition BNO08x.cpp:1694
-
static bool isr_service_installed
true of the isr service has been installed, only has to be done once regardless of how many devices a...
Definition BNO08x.hpp:3
-
void queue_tare_command(uint8_t command, uint8_t axis=TARE_AXIS_ALL, uint8_t rotation_vector_basis=TARE_ROTATION_VECTOR)
Queues a packet containing a command related to zeroing sensor's axes. (See Ref. Manual 6....
Definition BNO08x.cpp:2732
-
void get_gyro_calibrated_velocity(float &x, float &y, float &z, uint8_t &accuracy)
Get full rotational velocity with drift compensation (units in Rad/s).
Definition BNO08x.cpp:2173
-
QueueHandle_t queue_tx_data
Packet queue used to send data to be sent over SPI from sending functions to spi_task.
Definition BNO08x.hpp:326
-
bool wait_for_data()
Waits for a valid or invalid packet to be received or HOST_INT_TIMEOUT_MS to elapse.
Definition BNO08x.cpp:177
-
uint16_t raw_velocity_gyro_Y
Definition BNO08x.hpp:349
-
static const constexpr uint8_t COMMAND_CLEAR_DCD
Clear DCD & Reset command (See SH2 Ref. Manual 6.4)
Definition BNO08x.hpp:447
-
uint16_t parse_command_report(bno08x_rx_packet_t *packet)
Parses received command report sent by BNO08x (See Ref. Manual 6.3.9)
Definition BNO08x.cpp:1168
-
uint8_t get_activity_classifier()
Get the current activity classifier (Seee Ref. Manual 6.5.36)
Definition BNO08x.cpp:2408
-
void disable_activity_classifier()
Sends command to disable activity classifier reports by setting report interval to 0.
Definition BNO08x.cpp:1538
-
float get_uncalibrated_gyro_bias_Z()
Get uncalibrated gyro Z axis drift estimate.
Definition BNO08x.cpp:2301
-
void get_quat(float &i, float &j, float &k, float &real, float &rad_accuracy, uint8_t &accuracy)
Get the full quaternion reading.
Definition BNO08x.cpp:1882
-
uint16_t parse_frs_read_response_report(bno08x_rx_packet_t *packet)
Sends packet to be parsed to meta data function call (frs_read_word()) through queue.
Definition BNO08x.cpp:962
-
static const constexpr EventBits_t EVT_GRP_RPT_GYRO_ROTATION_VECTOR_BIT
When set, gyro integrator rotation vector reports are active.
Definition BNO08x.hpp:406
-
static const constexpr uint8_t SHTP_REPORT_PRODUCT_ID_REQUEST
See SH2 Ref. Manual 6.3.1.
Definition BNO08x.hpp:455
-
float get_gravity_Z()
Get the reported z axis gravity.
Definition BNO08x.cpp:1742
-
void enable_ARVR_stabilized_game_rotation_vector(uint32_t time_between_reports)
Sends command to enable ARVR stabilized game rotation vector reports (See Ref. Manual 6....
Definition BNO08x.cpp:1231
-
static const constexpr uint8_t CALIBRATE_STOP
Stop calibration command used by queue_calibrate_command.
Definition BNO08x.hpp:436
-
uint16_t mems_raw_accel_Z
Raw accelerometer readings from MEMS sensor (See SH2 Ref. Manual 6.5.8)
Definition BNO08x.hpp:364
-
static const constexpr uint8_t TARE_SET_REORIENTATION
See SH2 Ref. Manual 6.4.4.3.
Definition BNO08x.hpp:483
-
void enable_step_counter(uint32_t time_between_reports)
Sends command to enable step counter reports (See Ref. Manual 6.5.29)
Definition BNO08x.cpp:1330
-
float get_quat_real()
Get real component of reported quaternion.
Definition BNO08x.cpp:1930
-
void queue_command(uint8_t command, uint8_t *commands)
Queues a packet containing a command.
Definition BNO08x.cpp:554
-
void disable_gravity()
Sends command to disable gravity reports by setting report interval to 0.
Definition BNO08x.cpp:1468
-
static const constexpr EventBits_t EVT_GRP_SPI_RX_VALID_PACKET
When this bit is set, it indicates a valid packet has been received and processed.
Definition BNO08x.hpp:393
-
TaskHandle_t spi_task_hdl
spi_task() handle
Definition BNO08x.hpp:371
-
uint16_t raw_quat_J
Definition BNO08x.hpp:347
-
float get_quat_radian_accuracy()
Get radian accuracy of reported quaternion.
Definition BNO08x.cpp:1941
-
uint16_t raw_gyro_Y
Definition BNO08x.hpp:346
-
static bno08x_config_t default_imu_config
default imu config settings
Definition BNO08x.hpp:319
-
void queue_packet(uint8_t channel_number, uint8_t data_length, uint8_t *commands)
Queues an SHTP packet to be sent via SPI.
Definition BNO08x.cpp:500
-
EventGroupHandle_t evt_grp_report_en
Event group for indicating which reports are currently enabled.
Definition BNO08x.hpp:323
-
static const constexpr EventBits_t EVT_GRP_SPI_RX_INVALID_PACKET
When this bit is set, it indicates an invalid packet has been received.
Definition BNO08x.hpp:395
-
float get_yaw()
Get the reported rotation about z axis.
Definition BNO08x.cpp:1818
-
static const constexpr EventBits_t EVT_GRP_RPT_TAP_DETECTOR_BIT
When set, tap detector reports are active.
Definition BNO08x.hpp:414
-
void disable_magnetometer()
Sends command to disable magnetometer reports by setting report interval to 0.
Definition BNO08x.cpp:1498
-
static const constexpr uint8_t SENSOR_REPORT_ID_GRAVITY
See SH2 Ref. Manual 6.5.11.
Definition BNO08x.hpp:465
-
uint16_t parse_packet(bno08x_rx_packet_t *packet)
Parses a packet received from bno08x, updating any data according to received reports.
Definition BNO08x.cpp:875
-
static const constexpr uint8_t TARE_ARVR_STABILIZED_GAME_ROTATION_VECTOR
Tare ARVR stabilized game rotation vector.
Definition BNO08x.hpp:267
-
uint16_t raw_quat_I
Definition BNO08x.hpp:347
-
std::vector< std::function< void()> > cb_list
Definition BNO08x.hpp:330
-
static const constexpr EventBits_t EVT_GRP_RPT_RAW_GYRO_BIT
When set, raw gyro reports are active.
Definition BNO08x.hpp:419
-
float get_roll_deg()
Get the reported rotation about x axis.
Definition BNO08x.cpp:1845
-
int16_t get_raw_accel_Z()
Get raw accelerometer z axis reading from physical accelerometer MEMs sensor (See Ref....
Definition BNO08x.cpp:2098
-
bool calibration_complete()
Returns true if calibration has completed.
Definition BNO08x.cpp:709
-
static const constexpr uint8_t SENSOR_REPORT_ID_PERSONAL_ACTIVITY_CLASSIFIER
See SH2 Ref. Manual 6.5.36.
Definition BNO08x.hpp:476
-
void enable_gyro_integrated_rotation_vector(uint32_t time_between_reports)
Sends command to enable gyro integrated rotation vector reports (See Ref. Manual 6....
Definition BNO08x.cpp:1242
-
float get_uncalibrated_gyro_bias_Y()
Get uncalibrated gyro Y axis drift estimate.
Definition BNO08x.cpp:2291
-
static const constexpr uint8_t SHTP_REPORT_FRS_READ_REQUEST
See SH2 Ref. Manual 6.3.6.
Definition BNO08x.hpp:453
-
uint8_t activity_classifier
Activity status reading (See SH-2 Ref. Manual 6.5.36)
Definition BNO08x.hpp:360
-
void disable_raw_gyro()
Sends command to disable raw gyro reports by setting report interval to 0.
Definition BNO08x.cpp:1558
-
uint16_t raw_accel_X
Definition BNO08x.hpp:342
-
float get_linear_accel_X()
Get x axis linear acceleration (acceleration of device minus gravity, units in m/s^2)
Definition BNO08x.cpp:2038
-
void disable_game_rotation_vector()
Sends command to disable game rotation vector reports by setting report interval to 0.
Definition BNO08x.cpp:1408
-
uint16_t raw_quat_K
Definition BNO08x.hpp:347
-
static const constexpr EventBits_t EVT_GRP_RPT_ARVR_S_GAME_ROTATION_VECTOR_BIT
When set, ARVR stabilized game rotation vector reports are active.
Definition BNO08x.hpp:404
-
static const constexpr uint8_t COMMAND_DCD_PERIOD_SAVE
Configure DCD periodic saving (See SH2 Ref. Manual 6.4)
Definition BNO08x.hpp:445
-
uint32_t meta_data[9]
First 9 bytes of meta data returned from FRS read operation (we don't really need the rest) (See Ref....
Definition BNO08x.hpp:332
-
bool wait_for_tx_done()
Waits for a queued packet to be sent or HOST_INT_TIMEOUT_MS to elapse.
Definition BNO08x.cpp:223
-
QueueHandle_t queue_rx_data
Packet queue used to send data received from bno08x from spi_task to data_proc_task.
Definition BNO08x.hpp:325
-
static const constexpr EventBits_t EVT_GRP_RPT_STABILITY_CLASSIFIER_BIT
When set, stability classifier reports are active.
Definition BNO08x.hpp:416
-
void enable_uncalibrated_gyro(uint32_t time_between_reports)
Sends command to enable uncalibrated gyro reports (See Ref. Manual 6.5.14)
Definition BNO08x.cpp:1297
-
static void IRAM_ATTR hint_handler(void *arg)
HINT interrupt service routine, handles falling edge of BNO08x HINT pin.
Definition BNO08x.cpp:2859
-
static const constexpr uint8_t SENSOR_REPORT_ID_RAW_ACCELEROMETER
See SH2 Ref. Manual 6.5.8.
Definition BNO08x.hpp:473
-
static const constexpr uint8_t SENSOR_REPORT_ID_TAP_DETECTOR
See SH2 Ref. Manual 6.5.27.
Definition BNO08x.hpp:470
-
uint8_t get_gyro_accuracy()
Get calibrated gyro accuracy.
Definition BNO08x.cpp:2216
-
void disable_gyro()
Sends command to disable gyro reports by setting report interval to 0.
Definition BNO08x.cpp:1478
-
float get_magf_Y()
Get Y component of magnetic field vector.
Definition BNO08x.cpp:1672
-
static const constexpr uint8_t COMMAND_ME_CALIBRATE
Command and response to configure ME calibration (See SH2 Ref. Manual 6.4.7)
Definition BNO08x.hpp:444
-
QueueHandle_t queue_reset_reason
Queue used to send reset reason from product id report to reset_reason() function.
Definition BNO08x.hpp:328
-
uint16_t raw_quat_real
Definition BNO08x.hpp:347
-
float get_gravity_X()
Get the reported x axis gravity.
Definition BNO08x.cpp:1722
-
static const constexpr EventBits_t EVT_GRP_RPT_ALL_BITS
Definition BNO08x.hpp:422
-
float get_roll()
Get the reported rotation about x axis.
Definition BNO08x.cpp:1762
-
uint16_t raw_bias_X
Definition BNO08x.hpp:353
-
float get_gravity_Y()
Get the reported y axis gravity.
Definition BNO08x.cpp:1732
-
void enable_ARVR_stabilized_rotation_vector(uint32_t time_between_reports)
Sends command to enable ARVR stabilized rotation vector reports (See Ref. Manual 6....
Definition BNO08x.cpp:1220
-
static const constexpr uint8_t SENSOR_REPORT_ID_ARVR_STABILIZED_ROTATION_VECTOR
See SH2 Ref. Manual 6.5.42.
Definition BNO08x.hpp:477
-
void enable_raw_gyro(uint32_t time_between_reports)
Sends command to enable raw gyro reports (See Ref. Manual 6.5.12)
Definition BNO08x.cpp:1377
-
uint16_t parse_input_report(bno08x_rx_packet_t *packet)
Parses received input report sent by BNO08x.
Definition BNO08x.cpp:987
-
static const constexpr uint8_t TARE_ROTATION_VECTOR
Tare rotation vector.
Definition BNO08x.hpp:262
-
static const constexpr EventBits_t EVT_GRP_RPT_MAGNETOMETER_BIT
When set, magnetometer reports are active.
Definition BNO08x.hpp:413
-
uint16_t mems_raw_magf_Z
Raw magnetometer (compass) readings from MEMS sensor (See SH-2 Ref. Manual 6.5.15)
Definition BNO08x.hpp:368
-
static const constexpr int16_t ROTATION_VECTOR_ACCURACY_Q1
Rotation vector accuracy estimate Q point (See SH-2 Ref. Manual 6.5.18)
Definition BNO08x.hpp:270
-
void get_accel(float &x, float &y, float &z, uint8_t &accuracy)
Get full acceleration (total acceleration of device, units in m/s^2).
Definition BNO08x.cpp:1967
-
uint16_t mems_raw_accel_X
Definition BNO08x.hpp:363
-
static const constexpr uint8_t COMMAND_COUNTER
Definition BNO08x.hpp:440
-
int16_t get_Q2(uint16_t record_ID)
Gets Q2 point from BNO08x FRS (flash record system).
Definition BNO08x.cpp:2512
-
static const constexpr uint8_t CALIBRATE_PLANAR_ACCEL
Calibrate planar acceleration command used by queue_calibrate_command.
Definition BNO08x.hpp:433
-
int16_t get_raw_accel_Y()
Get raw accelerometer y axis reading from physical accelerometer MEMs sensor (See Ref....
Definition BNO08x.cpp:2088
-
static const constexpr EventBits_t EVT_GRP_RPT_ACTIVITY_CLASSIFIER_BIT
When set, activity classifier reports are active.
Definition BNO08x.hpp:417
-
bool soft_reset()
Soft resets BNO08x sensor using executable channel.
Definition BNO08x.cpp:294
-
spi_bus_config_t bus_config
SPI bus GPIO configuration settings.
Definition BNO08x.hpp:335
-
uint16_t gyro_accuracy
Raw gyro reading (See SH-2 Ref. Manual 6.5.13)
Definition BNO08x.hpp:346
-
int16_t get_raw_magf_Z()
Get raw magnetometer z axis reading from physical magnetometer sensor (See Ref. Manual 6....
Definition BNO08x.cpp:2158
-
QueueHandle_t queue_frs_read_data
Queue used to send packet body from data_proc_task to frs read functions.
Definition BNO08x.hpp:327
-
void calibrate_gyro()
Sends command to calibrate gyro.
Definition BNO08x.cpp:608
-
static const constexpr uint8_t SENSOR_REPORT_ID_RAW_MAGNETOMETER
See SH2 Ref. Manual 6.5.15.
Definition BNO08x.hpp:475
-
static const constexpr uint8_t TARE_GYRO_INTEGRATED_ROTATION_VECTOR
Tare gyro integrated rotation vector.
Definition BNO08x.hpp:265
-
static const constexpr uint16_t FRS_RECORD_ID_ROTATION_VECTOR
Rotation vector record ID, to be passed in metadata functions like get_Q1()
Definition BNO08x.hpp:255
-
float get_quat_K()
Get K component of reported quaternion.
Definition BNO08x.cpp:1919
-
float get_quat_J()
Get J component of reported quaternion.
Definition BNO08x.cpp:1908
-
static const constexpr int16_t MAGNETOMETER_Q1
Magnetometer Q point (See SH-2 Ref. Manual 6.5.16)
Definition BNO08x.hpp:274
-
void save_calibration()
Sends command to save internal calibration data (See Ref. Manual 6.4.7).
Definition BNO08x.cpp:734
-
EventGroupHandle_t evt_grp_spi
Event group for indicating when bno08x hint pin has triggered and when new data has been processed....
Definition BNO08x.hpp:322
-
static const constexpr EventBits_t EVT_GRP_SPI_TX_DONE
When this bit is set, it indicates a queued packet has been sent.
Definition BNO08x.hpp:397
-
static const constexpr int16_t GYRO_Q1
Gyro Q point (See SH-2 Ref. Manual 6.5.13)
Definition BNO08x.hpp:273
-
void disable_ARVR_stabilized_rotation_vector()
Sends command to disable ARVR stabilized rotation vector reports by setting report interval to 0.
Definition BNO08x.cpp:1418
-
uint16_t raw_velocity_gyro_X
Definition BNO08x.hpp:349
-
uint16_t raw_magf_X
Definition BNO08x.hpp:355
-
static const constexpr EventBits_t EVT_GRP_RPT_ARVR_S_ROTATION_VECTOR_BIT
When set, ARVR stabilized rotation vector reports are active.
Definition BNO08x.hpp:402
-
void disable_gyro_integrated_rotation_vector()
Sends command to disable gyro integrated rotation vector reports by setting report interval to 0.
Definition BNO08x.cpp:1438
-
uint16_t mems_raw_magf_Y
Definition BNO08x.hpp:367
-
void disable_uncalibrated_gyro()
Sends command to disable uncalibrated gyro reports by setting report interval to 0.
Definition BNO08x.cpp:1488
-
static const constexpr int16_t ANGULAR_VELOCITY_Q1
Angular velocity Q point (See SH-2 Ref. Manual 6.5.44)
Definition BNO08x.hpp:275
-
static const constexpr uint8_t SHTP_REPORT_COMMAND_REQUEST
See SH2 Ref. Manual 6.3.8.
Definition BNO08x.hpp:451
-
void enable_stability_classifier(uint32_t time_between_reports)
Sends command to enable activity stability classifier reports (See Ref. Manual 6.5....
Definition BNO08x.cpp:1341
-
void disable_ARVR_stabilized_game_rotation_vector()
Sends command to disable ARVR stabilized game rotation vector reports by setting report interval to 0...
Definition BNO08x.cpp:1428
-
static const constexpr EventBits_t EVT_GRP_RPT_STEP_COUNTER_BIT
When set, step counter reports are active.
Definition BNO08x.hpp:415
-
void disable_stability_classifier()
Sends command to disable stability reports by setting report interval to 0.
Definition BNO08x.cpp:1528
-
void data_proc_task()
Task responsible parsing packets. Executed when SPI task sends a packet to be parsed,...
Definition BNO08x.cpp:2830
-
uint16_t raw_magf_Z
Definition BNO08x.hpp:355
-
uint16_t raw_velocity_gyro_Z
Raw gyro angular velocity reading (See SH-2 Ref. Manual 6.5.44)
Definition BNO08x.hpp:350
-
void enable_rotation_vector(uint32_t time_between_reports)
Sends command to enable rotation vector reports (See Ref. Manual 6.5.18)
Definition BNO08x.cpp:1209
-
float get_magf_Z()
Get Z component of magnetic field vector.
Definition BNO08x.cpp:1683
-
void enable_tap_detector(uint32_t time_between_reports)
Sends command to enable tap detector reports (See Ref. Manual 6.5.27)
Definition BNO08x.cpp:1319
-
uint16_t raw_accel_Y
Definition BNO08x.hpp:342
-
uint16_t mems_raw_magf_X
Definition BNO08x.hpp:367
-
static const constexpr uint8_t SENSOR_REPORT_ID_STABILITY_CLASSIFIER
See SH2 Ref. Manual 6.5.31.
Definition BNO08x.hpp:472
-
void queue_request_product_id_command()
Queues a packet containing the request product ID command.
Definition BNO08x.cpp:570
-
uint16_t mems_raw_gyro_Y
Definition BNO08x.hpp:365
-
float get_gyro_calibrated_velocity_X()
Get calibrated gyro x axis angular velocity measurement.
Definition BNO08x.cpp:2186
-
static const constexpr EventBits_t EVT_GRP_RPT_GRAVITY_BIT
When set, gravity reports are active.
Definition BNO08x.hpp:410
-
static const constexpr uint8_t TARE_GAME_ROTATION_VECTOR
Tare game rotation vector.
Definition BNO08x.hpp:263
-
static const constexpr uint8_t SENSOR_REPORT_ID_GEOMAGNETIC_ROTATION_VECTOR
See SH2 Ref. Manual 6.5.20.
Definition BNO08x.hpp:468
-
uint16_t raw_lin_accel_Z
Definition BNO08x.hpp:344
-
uint32_t time_stamp
Report timestamp (see datasheet 1.3.5.3)
Definition BNO08x.hpp:341
-
float get_accel_X()
Get x axis acceleration (total acceleration of device, units in m/s^2).
Definition BNO08x.cpp:1980
-
void enable_game_rotation_vector(uint32_t time_between_reports)
Sends command to enable game rotation vector reports (See Ref. Manual 6.5.19)
Definition BNO08x.cpp:1198
-
static const constexpr uint8_t TARE_ARVR_STABILIZED_ROTATION_VECTOR
Tare ARVR stabilized rotation vector.
Definition BNO08x.hpp:266
-
static const constexpr uint8_t CALIBRATE_MAG
Calibrate magnetometer command used by queue_calibrate_command.
Definition BNO08x.hpp:432
-
spi_transaction_t spi_transaction
SPI transaction handle.
Definition BNO08x.hpp:338
-
bool mode_on()
Turns on/ brings BNO08x sensor out of sleep mode using executable channel.
Definition BNO08x.cpp:348
-
void calibrate_magnetometer()
Sends command to calibrate magnetometer.
Definition BNO08x.cpp:620
-
static const constexpr EventBits_t EVT_GRP_RPT_RAW_MAGNETOMETER_BIT
When set, raw magnetometer reports are active.
Definition BNO08x.hpp:420
-
uint16_t mems_raw_gyro_Z
Raw gyro readings from MEMS sensor (See SH-2 Ref. Manual 6.5.12)
Definition BNO08x.hpp:366
-
uint16_t raw_bias_Y
Definition BNO08x.hpp:353
-
uint16_t magf_accuracy
Calibrated magnetic field reading in uTesla (See SH-2 Ref. Manual 6.5.16)
Definition BNO08x.hpp:356
-
void end_calibration()
Sends command to end calibration procedure.
Definition BNO08x.cpp:722
-
static const constexpr uint8_t SENSOR_REPORT_ID_UNCALIBRATED_GYRO
See SH2 Ref. Manual 6.5.14.
Definition BNO08x.hpp:466
-
spi_device_handle_t spi_hdl
SPI device handle.
Definition BNO08x.hpp:337
-
uint16_t raw_uncalib_gyro_Y
Definition BNO08x.hpp:353
-
uint8_t get_gravity_accuracy()
Get the reported gravity accuracy.
Definition BNO08x.cpp:1752
-
static const constexpr uint8_t SENSOR_REPORT_ID_GYRO_INTEGRATED_ROTATION_VECTOR
See SH2 Ref. Manual 6.5.44.
Definition BNO08x.hpp:469
-
float get_gyro_velocity_Y()
Get y axis angular velocity from gyro-integrated rotation vector. (See Ref. Manual 6....
Definition BNO08x.cpp:2347
-
uint16_t raw_magf_Y
Definition BNO08x.hpp:355
-
float get_gyro_velocity_X()
Get x axis angular velocity from gyro-integrated rotation vector. (See Ref. Manual 6....
Definition BNO08x.cpp:2337
-
static const constexpr uint8_t CALIBRATE_ACCEL
Calibrate accelerometer command used by queue_calibrate_command.
Definition BNO08x.hpp:430
-
static const constexpr uint8_t SENSOR_REPORT_ID_LINEAR_ACCELERATION
See SH2 Ref. Manual 6.5.10.
Definition BNO08x.hpp:463
-
void queue_calibrate_command(uint8_t _to_calibrate)
Queues a packet containing a command to calibrate the specified sensor.
Definition BNO08x.cpp:645
-
static const constexpr int16_t LINEAR_ACCELEROMETER_Q1
Linear acceleration Q point (See SH-2 Ref. Manual 6.5.10)
Definition BNO08x.hpp:272
-
uint8_t calibration_status
Calibration status of device (See SH-2 Ref. Manual 6.4.7.1 & 6.4.7.2)
Definition BNO08x.hpp:362
-
float get_uncalibrated_gyro_bias_X()
Get uncalibrated gyro x axis drift estimate.
Definition BNO08x.cpp:2281
-
float get_gyro_calibrated_velocity_Y()
Get calibrated gyro y axis angular velocity measurement.
Definition BNO08x.cpp:2196
-
void get_linear_accel(float &x, float &y, float &z, uint8_t &accuracy)
Get full linear acceleration (acceleration of the device minus gravity, units in m/s^2).
Definition BNO08x.cpp:2025
-
void disable_accelerometer()
Sends command to disable accelerometer reports by setting report interval to 0.
Definition BNO08x.cpp:1448
-
void enable_gyro(uint32_t time_between_reports)
Sends command to enable gyro reports (See Ref. Manual 6.5.13)
Definition BNO08x.cpp:1286
-
void enable_activity_classifier(uint32_t time_between_reports, uint32_t activities_to_enable, uint8_t(&activity_confidence_vals)[9])
Sends command to enable activity classifier reports (See Ref. Manual 6.5.36)
Definition BNO08x.cpp:1354
-
static const constexpr uint16_t FRS_RECORD_ID_ACCELEROMETER
Accelerometer record ID, to be passed in metadata functions like get_Q1()
Definition BNO08x.hpp:249
-
uint16_t step_count
Step counter reading (See SH-2 Ref. Manual 6.5.29)
Definition BNO08x.hpp:358
-
uint16_t mems_raw_accel_Y
Definition BNO08x.hpp:363
-
uint32_t get_time_stamp()
Return timestamp of most recent report.
Definition BNO08x.cpp:1633
-
static const constexpr EventBits_t EVT_GRP_RPT_LINEAR_ACCELEROMETER_BIT
When set, linear accelerometer reports are active.
Definition BNO08x.hpp:409
-
static const constexpr uint8_t SENSOR_REPORT_ID_GAME_ROTATION_VECTOR
See SH2 Ref. Manual 6.5.19.
Definition BNO08x.hpp:467
-
uint16_t get_step_count()
Get the counted amount of steps.
Definition BNO08x.cpp:2379
-
void disable_raw_magnetometer()
Sends command to disable raw magnetometer reports by setting report interval to 0.
Definition BNO08x.cpp:1568
-
int16_t get_raw_magf_X()
Get raw magnetometer x axis reading from physical magnetometer sensor (See Ref. Manual 6....
Definition BNO08x.cpp:2138
-
bool FRS_read_request(uint16_t record_ID, uint16_t read_offset, uint16_t block_size)
Requests meta data from BNO08x FRS (flash record system) given the record ID. Contains Q points and o...
Definition BNO08x.cpp:2600
-
uint16_t gravity_accuracy
Gravity reading in m/s^2 (See SH-2 Ref. Manual 6.5.11)
Definition BNO08x.hpp:352
-
static const constexpr int16_t GRAVITY_Q1
Gravity Q point (See SH-2 Ref. Manual 6.5.11)
Definition BNO08x.hpp:276
-
void enable_linear_accelerometer(uint32_t time_between_reports)
Sends command to enable linear accelerometer reports (See Ref. Manual 6.5.10)
Definition BNO08x.cpp:1264
-
uint16_t raw_lin_accel_X
Definition BNO08x.hpp:344
-
float get_gyro_velocity_Z()
Get z axis angular velocity from gyro-integrated rotation vector. (See Ref. Manual 6....
Definition BNO08x.cpp:2357
-
static const constexpr uint8_t SHTP_REPORT_BASE_TIMESTAMP
See SH2 Ref. Manual 7.2.1.
Definition BNO08x.hpp:456
-
bool receive_packet()
Receives a SHTP packet via SPI and sends it to data_proc_task()
Definition BNO08x.cpp:396
-
bool run_full_calibration_routine()
Runs full calibration routine.
Definition BNO08x.cpp:753
-
static const constexpr uint64_t HOST_INT_TIMEOUT_MS
Max wait between HINT being asserted by BNO08x before transaction is considered failed (in milisecond...
Definition BNO08x.hpp:387
-
bool initialize()
Initializes BNO08x sensor.
Definition BNO08x.cpp:114
-
static const constexpr uint8_t CALIBRATE_GYRO
Calibrate gyro command used by queue_calibrate_command.
Definition BNO08x.hpp:431
-
static const constexpr uint8_t SENSOR_REPORT_ID_ARVR_STABILIZED_GAME_ROTATION_VECTOR
See SH2 Ref. Manual 6.5.43.
Definition BNO08x.hpp:478
-
static const constexpr uint8_t SHTP_REPORT_FRS_READ_RESPONSE
See SH2 Ref. Manual 6.3.7.
Definition BNO08x.hpp:452
-
static const constexpr uint8_t TARE_AXIS_Z
Tar yaw axis only (used with tare now command)
Definition BNO08x.hpp:259
-
bno08x_config_t imu_config
IMU configuration settings.
Definition BNO08x.hpp:334
-
void calibrate_accelerometer()
Sends command to calibrate accelerometer.
Definition BNO08x.cpp:596
-
static const constexpr uint8_t COMMAND_DCD
Save DCD command (See SH2 Ref. Manual 6.4.7)
Definition BNO08x.hpp:443
-
int16_t get_raw_gyro_X()
Get raw gyroscope x axis reading from physical gyroscope MEMs sensor (See Ref. Manual 6....
Definition BNO08x.cpp:2108
-
uint16_t gravity_Y
Definition BNO08x.hpp:351
-
uint16_t raw_accel_Z
Definition BNO08x.hpp:342
-
void queue_feature_command(uint8_t report_ID, uint32_t time_between_reports)
Queues a packet containing a command with a request for sensor reports, reported periodically....
Definition BNO08x.cpp:2756
-
uint16_t gravity_X
Definition BNO08x.hpp:351
-
float get_pitch_deg()
Get the reported rotation about y axis.
Definition BNO08x.cpp:1855
-
static const constexpr uint8_t CALIBRATE_ACCEL_GYRO_MAG
Calibrate accelerometer, gyro, & magnetometer command used by queue_calibrate_command.
Definition BNO08x.hpp:434
-
float get_yaw_deg()
Get the reported rotation about z axis.
Definition BNO08x.cpp:1865
-
static const constexpr EventBits_t EVT_GRP_RPT_GYRO_UNCALIBRATED_BIT
When set, uncalibrated gyro reports are active.
Definition BNO08x.hpp:412
-
uint8_t * activity_confidences
Confidence of read activities (See SH-2 Ref. Manual 6.5.36)
Definition BNO08x.hpp:361
-
TaskHandle_t data_proc_task_hdl
data_proc_task() task handle
Definition BNO08x.hpp:376
-
uint16_t gravity_Z
Definition BNO08x.hpp:351
-
uint16_t raw_uncalib_gyro_Z
Definition BNO08x.hpp:353
-
void save_tare()
Sends command to save tare into non-volatile memory of BNO08x (See Ref. Manual 6.4....
Definition BNO08x.cpp:1593
-
void disable_linear_accelerometer()
Sends command to disable linear accelerometer reports by setting report interval to 0.
Definition BNO08x.cpp:1458
-
void calibrate_all()
Sends command to calibrate accelerometer, gyro, and magnetometer.
Definition BNO08x.cpp:584
-
uint16_t raw_uncalib_gyro_X
Definition BNO08x.hpp:353
-
float get_accel_Y()
Get y axis acceleration (total acceleration of device, units in m/s^2).
Definition BNO08x.cpp:1990
-
float get_linear_accel_Z()
Get z axis linear acceleration (acceleration of device minus gravity, units in m/s^2)
Definition BNO08x.cpp:2058
-
void clear_tare()
Sends command to clear persistent tare settings in non-volatile memory of BNO08x (See Ref....
Definition BNO08x.cpp:1605
-
void get_gyro_velocity(float &x, float &y, float &z)
Full rotational velocity from gyro-integrated rotation vector (See Ref. Manual 6.5....
Definition BNO08x.cpp:2325
-
uint16_t raw_lin_accel_Y
Definition BNO08x.hpp:344
-
int16_t get_raw_gyro_Y()
Get raw gyroscope y axis reading from physical gyroscope MEMs sensor (See Ref. Manual 6....
Definition BNO08x.cpp:2118
-
void request_calibration_status()
Requests ME calibration status from BNO08x (see Ref. Manual 6.4.7.2)
Definition BNO08x.cpp:692
-
Holds data that is received over spi.
Definition BNO08x.hpp:281
-
uint16_t length
Body of SHTP packet.
Definition BNO08x.hpp:284
-
uint8_t header[4]
Header of SHTP packet.
Definition BNO08x.hpp:282
-
uint8_t body[300]
Definition BNO08x.hpp:283
-
Holds data that is sent over spi.
Definition BNO08x.hpp:289
-
uint8_t body[50]
Body of SHTP the packet (header + body)
Definition BNO08x.hpp:290
-
uint16_t length
Packet length in bytes.
Definition BNO08x.hpp:291
-
IMU configuration settings passed into constructor.
Definition BNO08x.hpp:44
-
spi_host_device_t spi_peripheral
SPI peripheral to be used.
Definition BNO08x.hpp:45
-
uint32_t sclk_speed
Desired SPI SCLK speed in Hz (max 3MHz)
Definition BNO08x.hpp:53
-
gpio_num_t io_int
Chip select pin (connects to BNO08x CS pin)
Definition BNO08x.hpp:50
-
gpio_num_t io_rst
Host interrupt pin (connects to BNO08x INT pin)
Definition BNO08x.hpp:51
-
gpio_num_t io_sclk
SCLK pin (connects to BNO08x SCL pin)
Definition BNO08x.hpp:48
-
gpio_num_t io_mosi
MOSI GPIO pin (connects to BNO08x DI pin)
Definition BNO08x.hpp:46
-
gpio_num_t io_wake
Reset pin (connects to BNO08x RST pin)
Definition BNO08x.hpp:52
-
gpio_num_t io_miso
MISO GPIO pin (connects to BNO08x SDA pin)
Definition BNO08x.hpp:47
-
gpio_num_t io_cs
Definition BNO08x.hpp:49
-
bno08x_config_t()
Default IMU configuration settings constructor. To modify default GPIO pins, run "idf....
Definition BNO08x.hpp:58
-
bno08x_config_t(spi_host_device_t spi_peripheral, gpio_num_t io_mosi, gpio_num_t io_miso, gpio_num_t io_sclk, gpio_num_t io_cs, gpio_num_t io_int, gpio_num_t io_rst, gpio_num_t io_wake, uint32_t sclk_speed)
Overloaded IMU configuration settings constructor for custom pin settings.
Definition BNO08x.hpp:73
-