esp32_BNO08x 1.3
C++ BNO08x IMU driver component for esp-idf.
Loading...
Searching...
No Matches
BNO08xRptUncalMagnetometer.hpp
Go to the documentation of this file.
1
7#pragma once
8
9#include "BNO08xRpt.hpp"
10
17{
18 public:
23
24 void get(bno08x_magf_t& magf, bno08x_magf_bias_t& bias);
27
28 private:
29 void update_data(sh2_SensorValue_t* sensor_val) override;
32 static const constexpr char* TAG = "BNO08xRptUncalMagnetometer";
33};
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 uncalibrated magnetometer reports. (See Ref. Manual 6.5.17)
Definition BNO08xRptUncalMagnetometer.hpp:17
bno08x_magf_bias_t bias_data
Definition BNO08xRptUncalMagnetometer.hpp:31
static const constexpr char * TAG
Definition BNO08xRptUncalMagnetometer.hpp:32
void update_data(sh2_SensorValue_t *sensor_val) override
Updates uncalibrated magf data from decoded sensor event.
Definition BNO08xRptUncalMagnetometer.cpp:15
BNO08xRptUncalMagnetometer(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition BNO08xRptUncalMagnetometer.hpp:19
bno08x_magf_t data
Definition BNO08xRptUncalMagnetometer.hpp:30
bno08x_magf_bias_t get_bias()
Grabs most recent uncalibrated magnetometer bias data, units are in uTesla.
Definition BNO08xRptUncalMagnetometer.cpp:61
void get(bno08x_magf_t &magf, bno08x_magf_bias_t &bias)
Grabs most recent uncalibrated magnetometer data, units are in uTesla.
Definition BNO08xRptUncalMagnetometer.cpp:35
bno08x_magf_t get_magf()
Grabs most recent uncalibrated magnetometer magnetic field data, units are in uTesla.
Definition BNO08xRptUncalMagnetometer.cpp:48
Holds context used to synchronize tasks and callback execution.
Definition BNO08xPrivateTypes.hpp:57
Struct to represent magnetic field bias data (units in uTesla)
Definition BNO08xGlobalTypes.hpp:328
Struct to represent magnetic field data (units in uTesla)
Definition BNO08xGlobalTypes.hpp:292