in dss side, I am trying to filter some objects out which are not inside the defined azimuth angle range or elevation angle range. I find MmwDemo_detectedObjActual_t which has the x, y, z coordinate value.
/*! * @brief Parameters of CFAR detected object during the second round of * CFAR detections. * */ typedef struct MmwDemo_objRaw2D { uint16_t rangeIdx; /*!< @brief Range index */ uint16_t dopplerIdx; /*!< @brief Doppler index */ uint16_t range; /*!< @brief Range (in meters * (1 << xyzOutputQFormat)) */ int16_t speed; /*!< @brief relative velocity (in meters/sec * (1 << xyzOutputQFormat)) */ uint16_t peakVal; /*!< @brief Peak value */ uint16_t rangeSNRdB; /*!< @brief SNR of the peak in the range dimension */ uint16_t dopplerSNRdB; /*!< @brief SNR of the peak in the doppler dimension */ } MmwDemo_objRaw2D_t; /*! * @brief Detected object estimated parameters. * */ typedef struct MmwDemo_detectedObjActual_t { uint16_t rangeIdx; /*!< @brief Range index */ uint16_t dopplerIdx; /*!< @brief Doppler index */ uint16_t range; /*!< @brief Range (meters in oneQformat) */ int16_t speed; /*!< @brief Doppler (m/s in oneQformat) */ int16_t sinAzim; /*!< @brief wx sin(Azim). Q format provides the bitwidth. */ uint16_t peakVal; /*!< @brief Peak value */ uint16_t rangeSNRdB; /*!< @brief Range SNR (dB) */ uint16_t dopplerSNRdB; /*!< @brief Doppler SNR (dB) */ uint16_t sinAzimSNRLin; /*!< @brief omega SNR (linear scale) */ int16_t x; /*!< @brief x - coordinate in meters. Q format provides the bitwidth. */ int16_t y; /*!< @brief y - coordinate in meters. Q format provides the bitwidth. */ int16_t z; /*!< @brief z - coordinate in meters. Q format provides the bitwidth. */ } MmwDemo_detectedObjActual;
I would like to know if we can calculate the angle base on the x, y, z of MmwDemo_detectedObjActual_t?