2024-11-27 23:54:47 +00:00
|
|
|
/**
|
|
|
|
|
* @file BNO08xStabilityClassifier.hpp
|
|
|
|
|
* @author Myles Parfeniuk
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-24 03:22:06 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "BNO08xRpt.hpp"
|
|
|
|
|
|
|
|
|
|
/**
|
2024-12-01 04:34:58 +00:00
|
|
|
* @class BNO08xStabilityClassifier
|
|
|
|
|
*
|
2024-11-24 03:22:06 +00:00
|
|
|
* @brief Class to represent stability classifier reports. (See Ref. Manual 6.5.31)
|
|
|
|
|
*/
|
|
|
|
|
class BNO08xStabilityClassifier : public BNO08xRpt
|
|
|
|
|
{
|
|
|
|
|
public:
|
2024-12-05 02:12:10 +00:00
|
|
|
BNO08xStabilityClassifier(BNO08xPrivateTypes::bno08x_report_info_t info)
|
|
|
|
|
: BNO08xRpt(info)
|
2024-11-24 03:22:06 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
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";
|
|
|
|
|
};
|