esp32_BNO08x 1.31
C++ BNO08x IMU driver component for esp-idf.
Loading...
Searching...
No Matches
BNO08xRptRawMEMSGyro.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "BNO08xRpt.hpp"
9
16{
17 public:
22
23 bool enable(
24 uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg = BNO08xPrivateTypes::default_sensor_cfg) override;
26
27 private:
28 void update_data(sh2_SensorValue_t* sensor_val) override;
30 static const constexpr char* TAG = "BNO08xRptRawMEMSGyro";
31};
Class to represent and manage reports returned from BNO08x.
Definition BNO08xRpt.hpp:26
BNO08xPrivateTypes::bno08x_sync_ctx_t * sync_ctx
Definition BNO08xRpt.hpp:42
uint8_t ID
Report ID, ex. SH2_ACCELERATION.
Definition BNO08xRpt.hpp:39
EventBits_t rpt_bit
Respective enable and data bit for report in evt_grp_rpt_en and evt_grp_rpt_data.
Definition BNO08xRpt.hpp:40
Class to represent raw gyro reports. (See Ref. Manual 6.5.12)
Definition BNO08xRptRawMEMSGyro.hpp:16
static const constexpr char * TAG
Definition BNO08xRptRawMEMSGyro.hpp:30
BNO08xRptRawMEMSGyro(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition BNO08xRptRawMEMSGyro.hpp:18
bno08x_raw_gyro_t get()
Grabs most recent raw mems gyro report (units in ADC counts, time_stamp in microseconds)
Definition BNO08xRptRawMEMSGyro.cpp:45
bool enable(uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg=BNO08xPrivateTypes::default_sensor_cfg) override
Enables raw gyro reports such that the BNO08x begins sending them.
Definition BNO08xRptRawMEMSGyro.cpp:35
void update_data(sh2_SensorValue_t *sensor_val) override
Updates raw mems gyro data from decoded sensor event.
Definition BNO08xRptRawMEMSGyro.cpp:15
bno08x_raw_gyro_t data
Definition BNO08xRptRawMEMSGyro.hpp:29
static sh2_SensorConfig default_sensor_cfg
Definition BNO08xPrivateTypes.hpp:127
Holds context used to synchronize tasks and callback execution.
Definition BNO08xPrivateTypes.hpp:57
Struct to represent raw mems gyro data from raw gyro reports (units in ADC counts).
Definition BNO08xGlobalTypes.hpp:591