esp32_BNO08x/include/report/BNO08xRptGravity.hpp

24 lines
634 B
C++
Raw Normal View History

2024-11-23 01:05:03 +00:00
#pragma once
#include "BNO08xRpt.hpp" // Include the base class header
/**
* @brief Class to represent gravity reports. (See Ref. Manual 6.5.11)
*/
class BNO08xRptGravity : public BNO08xRpt
{
public:
// Constructor declaration
BNO08xRptGravity(BNO08x* imu, uint8_t report_ID, uint32_t period_us, uint32_t rpt_bit)
: BNO08xRpt(imu, report_ID, period_us, rpt_bit)
{
}
bno08x_accel_data_t get();
private:
void update_data(sh2_SensorValue_t* sensor_val) override;
bno08x_accel_data_t data;
static const constexpr char* TAG = "BNO08xRptGravity";
};