# esp32_BNO08x: include/report/BNO08xRptRVGeomag.hpp Source File

Loading...
Searching...
No Matches
BNO08xRptRVGeomag.hpp
Go to the documentation of this file.
#pragma once
#include "BNO08xRptRVGeneric.hpp"
class BNO08xRptRVGeomag : public BNO08xRptRVGeneric
{
public:
BNO08xRptRVGeomag(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t* sync_ctx)
: BNO08xRptRVGeneric(ID, rpt_bit, sync_ctx)
{
}
bool tare(bool x = true, bool y = true, bool z = true);
bool tare_persist();
void tare_clear();
private:
void update_data(sh2_SensorValue_t* sensor_val) override;
static const constexpr char* TAG = "BNO08xRptRVGeomag";
};
BNO08xRptRVGeneric.hpp
BNO08xRpt::sync_ctx
BNO08xPrivateTypes::bno08x_sync_ctx_t * sync_ctx
Definition BNO08xRpt.hpp:42
BNO08xRpt::ID
uint8_t ID
Report ID, ex. SH2_ACCELERATION.
Definition BNO08xRpt.hpp:39
BNO08xRpt::rpt_bit
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
BNO08xRptRVGeneric
Class to represent rotation vector reports.
Definition BNO08xRptRVGeneric.hpp:16
BNO08xRptRVGeomag
Class to represent geomagnetic rotation vector reports. (See Ref. Manual 6.5.20)
Definition BNO08xRptRVGeomag.hpp:16
BNO08xRptRVGeomag::tare_clear
void tare_clear()
Clears most recent tare operation.
Definition BNO08xRptRVGeomag.cpp:64
BNO08xRptRVGeomag::BNO08xRptRVGeomag
BNO08xRptRVGeomag(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t *sync_ctx)
Definition BNO08xRptRVGeomag.hpp:18
BNO08xRptRVGeomag::update_data
void update_data(sh2_SensorValue_t *sensor_val) override
Updates geomagnetic rotation vector data from decoded sensor event.
Definition BNO08xRptRVGeomag.cpp:15
BNO08xRptRVGeomag::tare_persist
bool tare_persist()
Saves most recent tare operation to BNO08x internal flash, such that it persists on reset.
Definition BNO08xRptRVGeomag.cpp:45
BNO08xRptRVGeomag::tare
bool tare(bool x=true, bool y=true, bool z=true)
Tares geomagnetic rotation vector.
Definition BNO08xRptRVGeomag.cpp:35
BNO08xRptRVGeomag::TAG
static const constexpr char * TAG
Definition BNO08xRptRVGeomag.hpp:29
BNO08xPrivateTypes::bno08x_sync_ctx_t
Holds context used to synchronize tasks and callback execution.
Definition BNO08xPrivateTypes.hpp:57