|
One Framework 0.1.0
RoboMaster嵌入式框架“一键”解决方案,为你的“创意”服务。
|
Hub that collects asynchronous IMU data and exposes it via HubBase. 更多...
#include <ImuHub.hpp>
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:
Note: This class is final and non-copyable.
|
default |
|
static |
RTOS thread entry used for processing the RTIO completion queue.
Signature matches Zephyr k_thread entry point: (void*, void*, void*).
| void configure | ( | const ImuHubConfig & | config | ) |
|
static |
| 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.
|
staticconstexpr |