From a9077fc26f14337623c4e266eeb93645644ee7c1 Mon Sep 17 00:00:00 2001 From: 30hours Date: Wed, 11 Sep 2024 14:04:06 +0000 Subject: [PATCH] Add true n_samples in ambiguity --- src/process/ambiguity/Ambiguity.cpp | 5 +++++ src/process/ambiguity/Ambiguity.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/process/ambiguity/Ambiguity.cpp b/src/process/ambiguity/Ambiguity.cpp index 889b6c4..74e6f75 100644 --- a/src/process/ambiguity/Ambiguity.cpp +++ b/src/process/ambiguity/Ambiguity.cpp @@ -102,6 +102,7 @@ Map> *Ambiguity::process(IqData *x, IqData *y) } // range processing + nSamples = nDopplerBins * nCorr; for (uint16_t i = 0; i < nDopplerBins; i++) { for (uint16_t j = 0; j < nCorr; j++) @@ -193,3 +194,7 @@ double Ambiguity::get_cpi() const { uint32_t Ambiguity::get_nfft() const { return nfft; } + +uint32_t Ambiguity::get_n_samples() const { + return nSamples; +} \ No newline at end of file diff --git a/src/process/ambiguity/Ambiguity.h b/src/process/ambiguity/Ambiguity.h index 6fe776f..6498254 100644 --- a/src/process/ambiguity/Ambiguity.h +++ b/src/process/ambiguity/Ambiguity.h @@ -55,6 +55,8 @@ public: uint32_t get_nfft() const; + uint32_t get_n_samples() const; + private: /// @brief Minimum delay (bins). int32_t delayMin;