1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-17 05:30:34 +00:00
gnss-sdr/src/algorithms/acquisition/libs/acq_conf.h

78 lines
1.9 KiB
C
Raw Normal View History

/*!
2019-03-06 20:54:39 +00:00
* \file acq_conf.h
* \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.
* \author Carles Fernandez, 2018. cfernandez(at)cttc.es
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
*
2020-07-28 14:57:15 +00:00
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
*
* GNSS-SDR is a software defined Global Navigation
* Satellite Systems receiver
*
* This file is part of GNSS-SDR.
*
* SPDX-License-Identifier: GPL-3.0-or-later
*
2020-07-28 14:57:15 +00:00
* -----------------------------------------------------------------------------
*/
#ifndef GNSS_SDR_ACQ_CONF_H
#define GNSS_SDR_ACQ_CONF_H
2019-11-04 17:16:20 +00:00
#include "configuration_interface.h"
#include <cstdint>
#include <string>
class Acq_Conf
{
public:
Acq_Conf();
void SetFromConfiguration(const ConfigurationInterface *configuration, const std::string &role, double chip_rate, double opt_freq);
/* PCPS Acquisition configuration */
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;
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;
uint32_t max_dwells;
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;
bool bit_transition_flag;
bool use_CFAR_algorithm_flag;
bool dump;
bool blocking;
bool blocking_on_standby; // enable it only for unit testing to avoid sample consume on idle status
bool make_2_steps;
bool use_automatic_resampler;
2019-11-04 17:16:20 +00:00
private:
void SetDerivedParams();
2019-11-08 13:47:08 +00:00
void ConfigureAutomaticResampler(double opt_freq);
};
#endif