2024-11-24 03:22:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "BNO08xRpt.hpp"
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @brief Class to represent stability classifier reports. (See Ref. Manual 6.5.31)
|
|
|
|
|
*/
|
|
|
|
|
class BNO08xStabilityClassifier : public BNO08xRpt
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
BNO08xStabilityClassifier(BNO08x* imu, uint8_t report_ID, uint32_t period_us, uint32_t rpt_bit)
|
|
|
|
|
: BNO08xRpt(imu, report_ID, period_us, rpt_bit)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-26 21:28:27 +00:00
|
|
|
bno08x_stability_classifier_t get();
|
|
|
|
|
BNO08xStability get_stability();
|
2024-11-24 03:22:06 +00:00
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
void update_data(sh2_SensorValue_t* sensor_val) override;
|
2024-11-26 21:28:27 +00:00
|
|
|
bno08x_stability_classifier_t data;
|
2024-11-24 03:22:06 +00:00
|
|
|
static const constexpr char* TAG = "BNO08xStabilityClassifier";
|
|
|
|
|
};
|