sensor_radar_track_polar_t

Updated: April 19, 2023

Data payload format for data of type SENSOR_FORMAT_RADAR_POLAR

Synopsis:

#include <sensor/sensor_radar.h>
typedef struct sensor_radar_track_polar_t {
    uint32_t time_offset;
    uint32_t distance;
    int32_t speed;
    uint16_t track_id;
    int16_t azimuth;
    uint32_t flags;
    int32_t acceleration;
    uint16_t width;
    int16_t lateral_speed;
    uint8_t validity_level;
    uint8_t reserved[3];
} sensor_radar_track_polar_t;

Data:

uint32_t time_offset
Offset from the timestamp in sensor_buffer_t to apply for this object.
uint32_t distance
Distance to the object from the sensor, in millimeters (mm).
int32_t speed
Speed of the object, in millimeters per second (mm/s).
uint16_t track_id
Track identifier associated with this object.
int16_t azimuth
Azimuth angle, in hundredth of degrees with a -/+18000 range, centered on the forward axis of the sensor.

A positive angle indicates clockwise direction.

uint32_t flags
Bitfield with values based on the sensor_radar_track_flags_t enumeration.
int32_t acceleration
Acceleration of the object, in millimeters per second squared (mm/s2).
uint16_t width
Width of the object, in millimeters (mm).
int16_t lateral_speed
Lateral speed, in millimeters per second (mm/s).
uint8_t validity_level
Validity level of the target, represented as a percentage value, with 100 being the highest validity.

A higher validity level indicates more confidence in the measurement.

uint8_t reserved[3]
For internal use only; do not use.

Library:

libsensor

Description:

The data payload in the sensor_buffer_t data field is an array of these structures.