1#ifndef OF_LIB_IMU_HUB_HPP
2#define OF_LIB_IMU_HUB_HPP
4#include <zephyr/drivers/sensor.h>
5#include <zephyr/kernel.h>
24#ifndef CONFIG_IMU_HUB_RESOLVER_NONE
63 static constexpr auto name =
"ImuHub";
92 static void process_imu_data(
int result, uint8_t* buf, uint32_t buf_len,
void* userdata);
100 static void handle_axis_update(sensor_channel channel,
const struct sensor_three_axis_data& data);
102 const device* m_accel_dev;
103 const device* m_gyro_dev;
static OF::IMUData getImuData()
定义 ImuHub.hpp:107
void setup()
Configure and start the asynchronous IMU pipeline.
定义 ImuHub.cpp:182
ImuHub operator=(const ImuHub &)=delete
static constexpr auto name
定义 ImuHub.hpp:63
static void async_worker_thread(void *p1, void *p2, void *p3)
RTOS thread entry used for processing the RTIO completion queue.
定义 ImuHub.cpp:216
static IMUData getData()
定义 ImuHub.cpp:227
ImuHub(const ImuHub &)=delete
定义 JointSetpointGenerator.hpp:9
float roll
定义 ImuHub.hpp:33
float pitch
定义 ImuHub.hpp:33
float yaw
定义 ImuHub.hpp:33
Container for IMU sample data used by the hub.
定义 ImuHub.hpp:17
struct OF::IMUData::Quaternion quat
struct OF::IMUData::EulerAngle euler_angle
Vector3 accel
定义 ImuHub.hpp:38
Vector3 gyro
定义 ImuHub.hpp:37