esp32_BNO08x/include/report/BNO08xRptRV.hpp

31 lines
722 B
C++
Raw Normal View History

/**
* @file BNO08xRptRV.hpp
* @author Myles Parfeniuk
*/
2024-11-23 01:05:03 +00:00
#pragma once
#include "BNO08xRptRVGeneric.hpp"
2024-11-23 01:05:03 +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 06:09:15 +00:00
BNO08xRptRV(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t* sync_ctx)
: BNO08xRptRVGeneric(ID, rpt_bit, sync_ctx)
2024-11-23 01:05:03 +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";
};