Public Types | Public Member Functions | Public Attributes | List of all members
dai::IMUReport Struct Reference

#include <RawIMUData.hpp>

Inheritance diagram for dai::IMUReport:
Inheritance graph
[legend]

Public Types

enum  Accuracy : std::uint8_t { Accuracy::UNRELIABLE = 0, Accuracy::LOW = 1, Accuracy::MEDIUM = 2, Accuracy::HIGH = 3 }
 

Public Member Functions

int32_t getSequenceNum () const
 
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > getTimestamp () const
 
std::chrono::time_point< std::chrono::steady_clock, std::chrono::steady_clock::duration > getTimestampDevice () const
 

Public Attributes

Accuracy accuracy = Accuracy::UNRELIABLE
 
int32_t sequence = 0
 
Timestamp timestamp = {}
 
Timestamp tsDevice = {}
 

Detailed Description

Definition at line 10 of file RawIMUData.hpp.

Member Enumeration Documentation

◆ Accuracy

enum dai::IMUReport::Accuracy : std::uint8_t
strong
Enumerator
UNRELIABLE 
LOW 
MEDIUM 
HIGH 

Definition at line 11 of file RawIMUData.hpp.

Member Function Documentation

◆ getSequenceNum()

int32_t dai::IMUReport::getSequenceNum ( ) const
inline

Retrieves IMU report sequence number

Definition at line 51 of file RawIMUData.hpp.

◆ getTimestamp()

std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> dai::IMUReport::getTimestamp ( ) const
inline

Retrieves timestamp related to dai::Clock::now()

Definition at line 36 of file RawIMUData.hpp.

◆ getTimestampDevice()

std::chrono::time_point<std::chrono::steady_clock, std::chrono::steady_clock::duration> dai::IMUReport::getTimestampDevice ( ) const
inline

Retrieves timestamp directly captured from device's monotonic clock, not synchronized to host time. Used mostly for debugging

Definition at line 44 of file RawIMUData.hpp.

Member Data Documentation

◆ accuracy

Accuracy dai::IMUReport::accuracy = Accuracy::UNRELIABLE

Accuracy of sensor

Definition at line 25 of file RawIMUData.hpp.

◆ sequence

int32_t dai::IMUReport::sequence = 0

The sequence number increments once for each report sent. Gaps in the sequence numbers indicate missing or dropped reports. Max value 2^32 after which resets to 0.

Definition at line 22 of file RawIMUData.hpp.

◆ timestamp

Timestamp dai::IMUReport::timestamp = {}

Generation timestamp, synced to host time

Definition at line 28 of file RawIMUData.hpp.

◆ tsDevice

Timestamp dai::IMUReport::tsDevice = {}

Generation timestamp, direct device monotonic clock

Definition at line 31 of file RawIMUData.hpp.


The documentation for this struct was generated from the following file:


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