This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AWR1642BOOST: 目标识别距离计算

Part Number: AWR1642BOOST


TI的工程师您好

我在走读官方示例的DEMO —— AWR16xx_dss_nonOS时,想问一下从 MSS 经过串口传输到PC的数据中 ,下方代码结构体中的 uint16_t  rangeIdx; 变量的意义是什么?   

/*!
 *  @brief    Detected object estimated parameters
 *
 */
typedef volatile struct MmwDemo_detectedObj_t
{
    uint16_t  rangeIdx;     /*!< @brief Range index */
    int16_t   dopplerIdx;   /*!< @brief Doppler index. Note that it is changed
                                 to signed integer in order to handle extended maximum velocity.
                                 Neagative values correspond to the object moving toward
                                 sensor, and positive values correspond to the
                                 object moving away from the sensor */
    uint16_t  peakVal;      /*!< @brief Peak value */
    int16_t  x;             /*!< @brief x - coordinate in meters. Q format depends on the range resolution */
    int16_t  y;             /*!< @brief y - coordinate in meters. Q format depends on the range resolution */
    int16_t  z;             /*!< @brief z - coordinate in meters. Q format depends on the range resolution */
} MmwDemo_detectedObj;

另外 我看到 在demo的介绍文档中有如下解释 是意味着我可以使用这个公式进行距离的计算吗?我算出来的和真实的距离并不一样。

最后 能不能根据上述代码 X的坐标和Y坐标的值(int16_t x;int16_t y;int16_t z;)使用公式sqrt(x^2+y^2+z^2)进行计算?