IMU.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 // shared
7 
8 namespace dai {
9 namespace node {
10 
14 class IMU : public NodeCRTP<Node, IMU, IMUProperties> {
15  public:
16  constexpr static const char* NAME = "IMU";
17 
21  IMU(const std::shared_ptr<PipelineImpl>& par, int64_t nodeId);
22  IMU(const std::shared_ptr<PipelineImpl>& par, int64_t nodeId, std::unique_ptr<Properties> props);
23 
27  Output out{*this, "out", Output::Type::MSender, {{DatatypeEnum::IMUData, false}}};
28 
32  void enableIMUSensor(IMUSensorConfig sensorConfig);
33 
37  void enableIMUSensor(const std::vector<IMUSensorConfig>& sensorConfigs);
38 
42  void enableIMUSensor(IMUSensor sensor, uint32_t reportRate);
43 
47  void enableIMUSensor(const std::vector<IMUSensor>& sensors, uint32_t reportRate);
48 
52  void setBatchReportThreshold(std::int32_t batchReportThreshold);
53 
57  std::int32_t getBatchReportThreshold() const;
58 
62  void setMaxBatchReports(std::int32_t maxBatchReports);
63 
67  std::int32_t getMaxBatchReports() const;
68 
69  /*
70  * Whether to perform firmware update or not.
71  * Default value: false.
72  */
73  void enableFirmwareUpdate(bool enable);
74 };
75 
76 } // namespace node
77 } // namespace dai
dai::node::IMU::getBatchReportThreshold
std::int32_t getBatchReportThreshold() const
Definition: IMU.cpp:44
dai::node::IMU::enableFirmwareUpdate
void enableFirmwareUpdate(bool enable)
Definition: IMU.cpp:56
IMUProperties.hpp
dai::node::IMU::out
Output out
Definition: IMU.hpp:27
dai::node::IMU::setMaxBatchReports
void setMaxBatchReports(std::int32_t maxBatchReports)
Definition: IMU.cpp:48
dai::NodeCRTP
Definition: Node.hpp:342
dai::node::IMU
IMU node for BNO08X.
Definition: IMU.hpp:14
dai::node::IMU::setBatchReportThreshold
void setBatchReportThreshold(std::int32_t batchReportThreshold)
Definition: IMU.cpp:40
dai::node::IMU::enableIMUSensor
void enableIMUSensor(IMUSensorConfig sensorConfig)
Definition: IMU.cpp:14
dai::IMUSensor
IMUSensor
Definition: IMUProperties.hpp:15
dai::node::IMU::getMaxBatchReports
std::int32_t getMaxBatchReports() const
Definition: IMU.cpp:52
dai::IMUSensorConfig
Definition: IMUProperties.hpp:140
dai::node::IMU::IMU
IMU(const std::shared_ptr< PipelineImpl > &par, int64_t nodeId)
Definition: IMU.cpp:8
dai::DatatypeEnum::IMUData
@ IMUData
dai
Definition: CameraExposureOffset.hpp:6
Node.hpp
dai::node::IMU::NAME
constexpr static const char * NAME
Definition: IMU.hpp:16


depthai
Author(s): Martin Peterlin
autogenerated on Sat Mar 22 2025 02:58:19