2024-11-27 23:54:47 +00:00
|
|
|
/**
|
|
|
|
|
* @file BNO08xRptRV.hpp
|
|
|
|
|
* @author Myles Parfeniuk
|
|
|
|
|
*/
|
|
|
|
|
|
2024-11-23 01:05:03 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
2024-11-24 03:22:06 +00:00
|
|
|
#include "BNO08xRptRVGeneric.hpp"
|
2024-11-23 01:05:03 +00:00
|
|
|
|
|
|
|
|
/**
|
2024-12-01 04:34:58 +00:00
|
|
|
* @class BNO08xRptRV
|
|
|
|
|
*
|
2024-11-23 01:05:03 +00:00
|
|
|
* @brief Class to represent rotation vector reports. (See Ref. Manual 6.5.18)
|
|
|
|
|
*/
|
|
|
|
|
class BNO08xRptRV : public BNO08xRptRVGeneric
|
|
|
|
|
{
|
|
|
|
|
public:
|
2024-12-05 02:12:10 +00:00
|
|
|
BNO08xRptRV(BNO08xPrivateTypes::bno08x_report_info_t info)
|
|
|
|
|
: BNO08xRptRVGeneric(info)
|
2024-11-23 01:05:03 +00:00
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
2024-11-24 19:16:07 +00:00
|
|
|
bool tare(bool x = true, bool y = true, bool z = true);
|
|
|
|
|
bool tare_persist();
|
|
|
|
|
void tare_clear();
|
|
|
|
|
|
2024-11-23 01:05:03 +00:00
|
|
|
private:
|
|
|
|
|
void update_data(sh2_SensorValue_t* sensor_val) override;
|
|
|
|
|
static const constexpr char* TAG = "BNO08xRptRV";
|
|
|
|
|
};
|