esp32_BNO08x/include/report/BNO08xRptRVGeneric.hpp

32 lines
862 B
C++
Raw Normal View History

/**
* @file BNO08xRptRVGeneric.hpp
* @author Myles Parfeniuk
*/
2024-11-23 01:05:03 +00:00
#pragma once
#include "BNO08xRpt.hpp"
2024-11-23 01:05:03 +00:00
/**
* @class BNO08xRptRVGeneric
*
2024-11-23 01:05:03 +00:00
* @brief Class to represent rotation vector reports.
*/
class BNO08xRptRVGeneric : public BNO08xRpt
{
public:
bool enable(
uint32_t time_between_reports, sh2_SensorConfig_t sensor_cfg = BNO08xPrivateTypes::default_sensor_cfg) override;
2024-11-23 01:05:03 +00:00
bno08x_quat_t get_quat();
bno08x_euler_angle_t get_euler(bool in_degrees = true);
protected:
2024-12-05 06:09:15 +00:00
BNO08xRptRVGeneric(uint8_t ID, EventBits_t rpt_bit, BNO08xPrivateTypes::bno08x_sync_ctx_t* sync_ctx)
: BNO08xRpt(ID, rpt_bit, sync_ctx)
2024-11-23 01:05:03 +00:00
{
}
bool tare(bool x, bool y, bool z, sh2_TareBasis_t basis);
2024-11-23 01:05:03 +00:00
bno08x_quat_t data;
static const constexpr char* TAG = "BNO08xRptRVGeneric";
};