2024-11-27 23:54:47 +00:00
|
|
|
/**
|
|
|
|
|
* @file BNO08xRptRawMEMSMagnetometer.hpp
|
|
|
|
|
* @author Myles Parfeniuk
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-24 03:22:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "BNO08xRpt.hpp"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Class to represent raw magnetometer reports. (See Ref. Manual 6.5.15)
|
|
|
|
|
*/
|
|
|
|
|
class BNO08xRptRawMEMSMagnetometer : public BNO08xRpt
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
BNO08xRptRawMEMSMagnetometer(BNO08x* imu, uint8_t report_ID, uint32_t period_us, uint32_t rpt_bit)
|
|
|
|
|
: BNO08xRpt(imu, report_ID, period_us, rpt_bit)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bno08x_raw_magf_t get();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void update_data(sh2_SensorValue_t* sensor_val) override;
|
|
|
|
|
bno08x_raw_magf_t data;
|
|
|
|
|
static const constexpr char* TAG = "BNO08xRptRawMEMSMagnetometer";
|
|
|
|
|
};
|