sensor_flag_imu_format_t

The meaning of the flag field in the sensor_format_t for data of type SENSOR_FORMAT_IMU

Synopsis:

#include <sensor/sensor_api.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
If bit is set, the orientation field is present.
FLAG_IMU_ORIENTATION_TIME_OFFSET
If bit is set, the orientation_time_offset field is present.
FLAG_IMU_ACCELERATION
If bit is set, the acceleration field is present.
FLAG_IMU_RATE_OF_TURN
If bit is set, the rate_of_turn field is present.
FLAG_IMU_MAGNETIC_FIELD
If bit is set, the magnetic_field field is present.
FLAG_IMU_TIME_ACCURACY
If bit is set, the time_accuracy field is present.
FLAG_IMU_NDOP
If bit is set, the ndop field is present.
FLAG_IMU_EDOP
If bit is set, the edop field is present.
FLAG_IMU_HEADING_ACCURACY
If bit is set, the heading_accuracy field is present.

Library:

libsensor

Description:

It indicates which fields of the sensor_imu_format_t are present for this buffer.