esp32_BNO08x 1.3
C++ BNO08x IMU driver component for esp-idf.
Loading...
Searching...
No Matches
BNO08xRptRVGeneric.hpp
Go to the documentation of this file.
1
6#pragma once
7
8#include "BNO08xRpt.hpp"
9
16{
17 public:
19 bno08x_euler_angle_t get_euler(bool in_degrees = true);
20
21 protected:
26 bool tare(bool x, bool y, bool z, sh2_TareBasis_t basis);
28 static const constexpr char* TAG = "BNO08xRptRVGeneric";
29};
Class to represent and manage reports returned from BNO08x.
Definition BNO08xRpt.hpp:24
BNO08xPrivateTypes::bno08x_sync_ctx_t * sync_ctx
Definition BNO08xRpt.hpp:39
uint8_t ID
Report ID, ex. SH2_ACCELERATION.
Definition BNO08xRpt.hpp:36
EventBits_t rpt_bit
Respective enable and data bit for report in evt_grp_rpt_en and evt_grp_rpt_data.
Definition BNO08xRpt.hpp:37
Class to represent rotation vector reports.
Definition BNO08xRptRVGeneric.hpp:16
static const constexpr char * TAG
Definition BNO08xRptRVGeneric.hpp:28
BNO08xRptRVGeneric(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition BNO08xRptRVGeneric.hpp:22
bool tare(bool x, bool y, bool z, sh2_TareBasis_t basis)
Tares vector basis according to axis flags.
Definition BNO08xRptRVGeneric.cpp:60
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:36
bno08x_quat_t data
Definition BNO08xRptRVGeneric.hpp:27
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:20
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:214
Struct to represent unit quaternion.
Definition BNO08xGlobalTypes.hpp:159