2018-06-19 10:59:54 +00:00
|
|
|
/*!
|
2019-03-06 20:54:39 +00:00
|
|
|
* \file acq_conf.h
|
2018-06-19 10:59:54 +00:00
|
|
|
* \brief Class that contains all the configuration parameters for generic
|
2019-07-09 09:52:53 +00:00
|
|
|
* acquisition block based on the PCPS algorithm.
|
2018-06-19 10:59:54 +00:00
|
|
|
* \author Carles Fernandez, 2018. cfernandez(at)cttc.es
|
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2018-06-19 10:59:54 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2018-06-19 10:59:54 +00:00
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-02-08 00:20:02 +00:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2018-06-19 10:59:54 +00:00
|
|
|
*
|
2020-07-28 14:57:15 +00:00
|
|
|
* -----------------------------------------------------------------------------
|
2018-06-19 10:59:54 +00:00
|
|
|
*/
|
|
|
|
|
2020-02-08 09:10:46 +00:00
|
|
|
#ifndef GNSS_SDR_ACQ_CONF_H
|
|
|
|
#define GNSS_SDR_ACQ_CONF_H
|
2018-06-19 10:59:54 +00:00
|
|
|
|
2019-11-04 17:16:20 +00:00
|
|
|
#include "configuration_interface.h"
|
2018-08-11 10:56:52 +00:00
|
|
|
#include <cstdint>
|
2018-06-19 10:59:54 +00:00
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Acq_Conf
|
|
|
|
{
|
|
|
|
public:
|
2020-02-20 09:50:12 +00:00
|
|
|
Acq_Conf();
|
|
|
|
|
2020-06-29 07:07:41 +00:00
|
|
|
void SetFromConfiguration(const ConfigurationInterface *configuration, const std::string &role, double chip_rate, double opt_freq);
|
2020-02-20 09:50:12 +00:00
|
|
|
|
2018-06-19 10:59:54 +00:00
|
|
|
/* PCPS Acquisition configuration */
|
2020-06-23 07:47:58 +00:00
|
|
|
std::string item_type;
|
|
|
|
std::string dump_filename;
|
|
|
|
|
|
|
|
int64_t fs_in;
|
|
|
|
int64_t resampled_fs;
|
|
|
|
|
|
|
|
size_t it_size;
|
|
|
|
|
|
|
|
float doppler_step;
|
|
|
|
float samples_per_ms;
|
|
|
|
float doppler_step2;
|
|
|
|
float pfa;
|
|
|
|
float pfa2;
|
|
|
|
float samples_per_code;
|
|
|
|
float resampler_ratio;
|
|
|
|
|
2018-08-11 10:56:52 +00:00
|
|
|
uint32_t sampled_ms;
|
|
|
|
uint32_t ms_per_code;
|
|
|
|
uint32_t samples_per_chip;
|
2019-11-04 17:16:20 +00:00
|
|
|
uint32_t chips_per_second;
|
2018-08-11 10:56:52 +00:00
|
|
|
uint32_t max_dwells;
|
2020-06-23 07:47:58 +00:00
|
|
|
uint32_t num_doppler_bins_step2;
|
|
|
|
uint32_t resampler_latency_samples;
|
|
|
|
uint32_t dump_channel;
|
2019-11-04 17:16:20 +00:00
|
|
|
int32_t doppler_max;
|
|
|
|
int32_t doppler_min;
|
2020-06-23 07:47:58 +00:00
|
|
|
|
2018-06-19 10:59:54 +00:00
|
|
|
bool bit_transition_flag;
|
|
|
|
bool use_CFAR_algorithm_flag;
|
|
|
|
bool dump;
|
|
|
|
bool blocking;
|
2018-06-29 11:39:17 +00:00
|
|
|
bool blocking_on_standby; // enable it only for unit testing to avoid sample consume on idle status
|
2018-06-19 10:59:54 +00:00
|
|
|
bool make_2_steps;
|
2018-12-03 16:58:18 +00:00
|
|
|
bool use_automatic_resampler;
|
2018-06-19 10:59:54 +00:00
|
|
|
|
2019-11-04 17:16:20 +00:00
|
|
|
private:
|
|
|
|
void SetDerivedParams();
|
|
|
|
|
2019-11-08 13:47:08 +00:00
|
|
|
void ConfigureAutomaticResampler(double opt_freq);
|
2018-06-19 10:59:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|