esp32_BNO08x/include/report/BNO08xRptAcceleration.hpp

30 lines
681 B
C++
Raw Normal View History

/**
* @file BNO08xRptAcceleration.hpp
* @author Myles Parfeniuk
*/
2024-11-23 01:05:03 +00:00
#pragma once
#include "BNO08xRpt.hpp"
2024-11-23 01:05:03 +00:00
/**
* @class BNO08xRptAcceleration
*
2024-11-23 01:05:03 +00:00
* @brief Class to represent accelerometer reports. (See Ref. Manual 6.5.9)
*/
class BNO08xRptAcceleration : public BNO08xRpt
{
public:
2024-12-05 06:09:15 +00:00
BNO08xRptAcceleration(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t* sync_ctx)
: BNO08xRpt(ID, rpt_bit, sync_ctx)
2024-11-23 01:05:03 +00:00
{
}
bno08x_accel_t get();
2024-11-23 01:05:03 +00:00
private:
void update_data(sh2_SensorValue_t* sensor_val) override;
bno08x_accel_t data;
2024-11-23 01:05:03 +00:00
static const constexpr char* TAG = "BNO08xRptAcceleration";
};