sensor_flag_imu_format_t

Updated: April 19, 2023

Bit settings for the sensor_buffer_t flag field for data of type SENSOR_FORMAT_IMU

Synopsis:

#include <sensor/sensor_gps_imu.h>
typedef enum {
    FLAG_IMU_ORIENTATION = 1,
    FLAG_IMU_ORIENTATION_TIME_OFFSET = 2,
    FLAG_IMU_ACCELERATION = 4,
    FLAG_IMU_RATE_OF_TURN = 8,
    FLAG_IMU_MAGNETIC_FIELD = 0x10,
    FLAG_IMU_TIME_ACCURACY = 0x20,
    FLAG_IMU_NDOP = 0x40,
    FLAG_IMU_EDOP = 0x80,
    FLAG_IMU_HEADING_ACCURACY = 0x100
} sensor_flag_imu_format_t;

Data:

FLAG_IMU_ORIENTATION
The orientation field is present.
FLAG_IMU_ORIENTATION_TIME_OFFSET
The orientation_time_offset field is present.
FLAG_IMU_ACCELERATION
The acceleration field is present.
FLAG_IMU_RATE_OF_TURN
The rate_of_turn field is present.
FLAG_IMU_MAGNETIC_FIELD
The magnetic_field field is present.
FLAG_IMU_TIME_ACCURACY
The time_accuracy field is present.
FLAG_IMU_NDOP
The ndop field is present.
FLAG_IMU_EDOP
The edop field is present.
FLAG_IMU_HEADING_ACCURACY
The heading_accuracy field is present.

Library:

libsensor

Description:

This enumeration represents bits in the flag field that when set, indicate the data fields in the sensor_imu_format_t structure that are defined for this buffer.