One Framework 0.1.0
RoboMaster嵌入式框架“一键”解决方案,为你的“创意”服务。
载入中...
搜索中...
未找到
ImuHub类 参考final

Hub that collects asynchronous IMU data and exposes it via HubBase. 更多...

#include <ImuHub.hpp>

类 ImuHub 继承关系图:
ImuHub 的协作图:

Public 成员函数

 ImuHub ()=default
 
 ImuHub (const ImuHub &)=delete
 
ImuHub operator= (const ImuHub &)=delete
 
void configure (const ImuHubConfig &config)
 
void setup ()
 Configure and start the asynchronous IMU pipeline.
 
- Public 成员函数 继承自 HubBase< ImuHub >
 HubBase ()=default
 
void init () override
 
const char * getName () override
 

静态 Public 成员函数

static void async_worker_thread (void *p1, void *p2, void *p3)
 RTOS thread entry used for processing the RTIO completion queue.
 
static IMUData getData ()
 

静态 Public 属性

static constexpr auto name = "ImuHub"
 

额外继承的成员函数

- Protected 成员函数 继承自 IHub
virtual ~IHub ()=default
 

详细描述

Hub that collects asynchronous IMU data and exposes it via HubBase.

ImuHub manages one or more Zephyr sensor devices using RTIO asynchronous reads. It decodes incoming sensor buffers, converts fixed-point q31 samples to float, and updates the shared IMU data object.

Usage:

  • The HubBase infrastructure calls the ImuHub constructor through the singleton pattern provided by HubBase.
  • Call setup() after devices are registered to initialize the async pipeline.

Note: This class is final and non-copyable.

构造及析构函数说明

◆ ImuHub() [1/2]

ImuHub ( )
default

◆ ImuHub() [2/2]

ImuHub ( const ImuHub & )
delete

成员函数说明

◆ async_worker_thread()

void async_worker_thread ( void * p1,
void * p2,
void * p3 )
static

RTOS thread entry used for processing the RTIO completion queue.

Signature matches Zephyr k_thread entry point: (void*, void*, void*).

◆ configure()

void configure ( const ImuHubConfig & config)

◆ getData()

IMUData getData ( )
static

◆ operator=()

ImuHub operator= ( const ImuHub & )
delete

◆ setup()

void setup ( )

Configure and start the asynchronous IMU pipeline.

This will bind RTIO I/O device wrappers to registered Zephyr sensor devices, start a background RTIO worker thread and submit the first async read requests.

结构体成员变量说明

◆ name

auto name = "ImuHub"
staticconstexpr

该类的文档由以下文件生成: