29 lines
698 B
C++
29 lines
698 B
C++
/**
|
|
* @file BNO08xRptRV.hpp
|
|
* @author Myles Parfeniuk
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "BNO08xRptRVGeneric.hpp"
|
|
|
|
/**
|
|
* @brief Class to represent rotation vector reports. (See Ref. Manual 6.5.18)
|
|
*/
|
|
class BNO08xRptRV : public BNO08xRptRVGeneric
|
|
{
|
|
public:
|
|
BNO08xRptRV(BNO08x* imu, uint8_t report_ID, uint32_t period_us, uint32_t rpt_bit)
|
|
: BNO08xRptRVGeneric(imu, report_ID, period_us, rpt_bit)
|
|
{
|
|
}
|
|
|
|
bool tare(bool x = true, bool y = true, bool z = true);
|
|
bool tare_persist();
|
|
void tare_clear();
|
|
|
|
private:
|
|
void update_data(sh2_SensorValue_t* sensor_val) override;
|
|
static const constexpr char* TAG = "BNO08xRptRV";
|
|
};
|