The meaning of the flag field in the sensor_format_t for data of type SENSOR_FORMAT_LIDAR_SPHERICAL
#include <sensor/sensor_api.h>
typedef enum { FLAG_LS_REFLECTIVITY = 1, FLAG_LS_LASER_ID = 2, FLAG_LS_FLAG = 4, FLAG_LS_THETA = 8, FLAG_LS_PHI = 0x10, FLAG_LS_RHO = 0x20 } sensor_flag_lidar_spherical_t;
It indicates which fields of the sensor_lidar_spherical_t are present for this buffer.