esp32_BNO08x 1.4
C++ BNO08x IMU driver component for esp-idf.
BNO08xRptRVGeneric.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "BNO08xRpt.hpp"
9
16{
17 public:
18 bool enable(
19 uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg = BNO08xPrivateTypes::default_sensor_cfg) override;
21 bno08x_euler_angle_t get_euler(bool in_degrees = true);
22
23 protected:
26 {
27 }
28 bool tare(bool x, bool y, bool z, sh2_TareBasis_t basis);
30 static const constexpr char* TAG = "BNO08xRptRVGeneric";
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 rotation vector reports.
Definition: BNO08xRptRVGeneric.hpp:16
bool enable(uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg=BNO08xPrivateTypes::default_sensor_cfg) override
Enables a rotation vector report such that the BNO08x begins it.
Definition: BNO08xRptRVGeneric.cpp:17
static const constexpr char * TAG
Definition: BNO08xRptRVGeneric.hpp:30
BNO08xRptRVGeneric(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition: BNO08xRptRVGeneric.hpp:24
bool tare(bool x, bool y, bool z, sh2_TareBasis_t basis)
Tares vector basis according to axis flags.
Definition: BNO08xRptRVGeneric.cpp:74
bno08x_euler_angle_t get_euler(bool in_degrees=true)
Grabs most recent rotation vector data in form of an euler angle, units are in degrees or rads.
Definition: BNO08xRptRVGeneric.cpp:50
bno08x_quat_t data
Definition: BNO08xRptRVGeneric.hpp:29
bno08x_quat_t get_quat()
Grabs most recent rotation vector data in form of unit quaternion, rad accuracy units in radians (if ...
Definition: BNO08xRptRVGeneric.cpp:34
Holds context used to synchronize tasks and callback execution.
Definition: BNO08xPrivateTypes.hpp:57
Struct to represent euler angle (units in degrees or rads)
Definition: BNO08xGlobalTypes.hpp:528
Struct to represent unit quaternion.
Definition: BNO08xGlobalTypes.hpp:473