Add true n_samples in ambiguity

This commit is contained in:
30hours 2024-09-11 14:04:06 +00:00
parent ef0739a49b
commit a9077fc26f
2 changed files with 7 additions and 0 deletions

View file

@ -102,6 +102,7 @@ Map<std::complex<double>> *Ambiguity::process(IqData *x, IqData *y)
} }
// range processing // range processing
nSamples = nDopplerBins * nCorr;
for (uint16_t i = 0; i < nDopplerBins; i++) for (uint16_t i = 0; i < nDopplerBins; i++)
{ {
for (uint16_t j = 0; j < nCorr; j++) for (uint16_t j = 0; j < nCorr; j++)
@ -193,3 +194,7 @@ double Ambiguity::get_cpi() const {
uint32_t Ambiguity::get_nfft() const { uint32_t Ambiguity::get_nfft() const {
return nfft; return nfft;
} }
uint32_t Ambiguity::get_n_samples() const {
return nSamples;
}

View file

@ -55,6 +55,8 @@ public:
uint32_t get_nfft() const; uint32_t get_nfft() const;
uint32_t get_n_samples() const;
private: private:
/// @brief Minimum delay (bins). /// @brief Minimum delay (bins).
int32_t delayMin; int32_t delayMin;