drivers: IMU WT61PC noi thang UART (mcu.protocol: wt61pc), bo ESP32 -- doc quyen cong, tach khung co resync, canh bao khi im

This commit is contained in:
trung09122002
2026-10-02 14:01:19 +07:00
parent a8388102d8
commit be2aa17e3e
13 changed files with 1088 additions and 8 deletions

View File

@@ -1,5 +1,8 @@
// Cau noi toi MCU: IMU qua UART.
//
// (Cach thu ba -- WT61PC noi THANG UART, khong ESP32 -- nam o wt61pc_bridge.cc;
// CreateMcuBridge() o cuoi file chon theo mcu.protocol.)
//
// ================== HAI NHANH, CHON BANG mcu.expect_timestamps ==================
//
// `true` -- firmware trong firmware/imu_uart/ cua repo nay. Phat theo dung
@@ -516,8 +519,15 @@ class McuBridge : public McuInterface {
} // namespace
// Dinh nghia o wt61pc_bridge.cc.
std::unique_ptr<McuInterface> CreateWt61pcBridge(const McuConfig& cfg,
ClockPtr clock);
std::unique_ptr<McuInterface> CreateMcuBridge(const McuConfig& cfg,
ClockPtr clock) {
if (cfg.protocol == McuProtocol::kWt61pc) {
return CreateWt61pcBridge(cfg, std::move(clock));
}
return std::make_unique<McuBridge>(cfg, std::move(clock));
}