The meaning of the flag field in the sensor_format_t for data of type SENSOR_FORMAT_LIDAR_POLAR
#include <sensor/sensor_api.h>
typedef enum { FLAG_LP_REFLECTIVITY = 1, FLAG_LP_LASER_ID = 2, FLAG_LP_FLAG = 4, FLAG_LP_AZIMUTH = 8, FLAG_LP_ELEVATION = 0x10, FLAG_LP_DISTANCE = 0x20 } sensor_flag_lidar_polar_t;
It indicates which fields of the sensor_lidar_polar_t are present for this buffer.