The meaning of the flag field in the sensor_format_t for data of type SENSOR_FORMAT_RADAR_POLAR
Synopsis:
#include <sensor/sensor_api.h>
typedef enum {
FLAG_RTP_DISTANCE = 1,
FLAG_RTP_SPEED = 2,
FLAG_RTP_TRACK_ID = 4,
FLAG_RTP_AZIMUTH = 8,
FLAG_RTP_FLAGS = 0x10,
FLAG_RTP_ACCELERATION = 0x20,
FLAG_RTP_WIDTH = 0x40,
FLAG_RTP_LATERAL_SPEED = 0x80,
FLAG_RTP_VALIDITY_LEVEL = 0x100
} sensor_flag_radar_track_polar_t;
Data:
- FLAG_RTP_DISTANCE
- If bit is set, the distance field is present.
- FLAG_RTP_SPEED
- If bit is set, the speed field is present.
- FLAG_RTP_TRACK_ID
- If bit is set, the track_id field is present.
- FLAG_RTP_AZIMUTH
- If bit is set, the azimuth field is present.
- FLAG_RTP_FLAGS
- If bit is set, the flags field is present.
- FLAG_RTP_ACCELERATION
- If bit is set, the acceleration field is present.
- FLAG_RTP_WIDTH
- If bit is set, the width field is present.
- FLAG_RTP_LATERAL_SPEED
- If bit is set, the lateral_speed field is present.
- FLAG_RTP_VALIDITY_LEVEL
- If bit is set, the validity_level field is present.
Library:
libsensor