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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user